V
- the type of the verticesE
- the type of the edgespublic interface Graph<V,E extends Edge>
Modifier and Type | Method and Description |
---|---|
void |
addEdge(E edge) |
void |
addEdges(java.util.Collection<E> edges) |
void |
addVertex(V vertex) |
void |
addVertices(java.util.Collection<V> vertices) |
java.util.Collection<E> |
getEdges() |
java.util.Collection<V> |
getVertices() |
boolean |
removeEdge(E edge) |
boolean |
removeEdges(java.util.Collection<E> edges) |
boolean |
removeVertex(V vertex) |
boolean |
removeVertices(java.util.Collection<V> vertices) |
void addEdge(E edge)
void addEdges(java.util.Collection<E> edges)
boolean removeEdge(E edge)
boolean removeEdges(java.util.Collection<E> edges)
void addVertex(V vertex)
void addVertices(java.util.Collection<V> vertices)
boolean removeVertex(V vertex)
boolean removeVertices(java.util.Collection<V> vertices)
java.util.Collection<V> getVertices()
java.util.Collection<E> getEdges()