TypeVertex
- The type of values stored in the vertices. Must be a Comparable type.TypeVertexReal
- The real type of vertices. Must inherits Vertex.public interface Vertices<TypeVertex extends java.lang.Comparable<TypeVertex>,TypeVertexReal extends Vertex<TypeVertex>> extends java.util.Set<TypeVertexReal>, BubuntuGraph
Modifier and Type | Method and Description |
---|---|
boolean |
add(TypeVertex... vertices)
Add new vertices in the graph.
|
boolean |
add(TypeVertex vertex)
Add a new vertex in the graph.
|
boolean |
contains(TypeVertex vertex)
Returns true if this set contains the specified vertex.
|
TypeVertexReal |
get(TypeVertex vertex)
Get the specified vertex.
|
boolean |
remove(TypeVertex vertex)
Remove the specified vertex from the set.
|
boolean add(TypeVertex vertex)
vertex
- The new vertex.boolean add(TypeVertex... vertices)
vertices
- The new vertices to add in the graph.boolean contains(TypeVertex vertex)
vertex
- The vertex to find.TypeVertexReal get(TypeVertex vertex) throws EGraphIncorrectVertex
vertex
- The vertex to give.EGraphIncorrectVertex
- If no vertex matching.boolean remove(TypeVertex vertex)
vertex
- The vertex to remove.