public interface MutableGraph extends Graph
Modifier and Type | Method and Description |
---|---|
boolean |
add(Edge edge)
Adds the specified edge to the graph.
|
boolean |
add(Vertex vertex)
Adds the specified vertex to the graph.
|
boolean |
remove(Edge edge)
Deletes the specified edge from the graph.
|
boolean |
remove(Vertex vertex)
Deletes the specified vertex from the graph.
|
getEdges, getEdgesFrom, getEdgesTo, getVertices
boolean add(Vertex vertex)
vertex
- vertex to be addedboolean remove(Vertex vertex)
vertex
- vertex to be removedboolean add(Edge edge)
edge
- edge to be addedboolean remove(Edge edge)
edge
- edge to be removedCopyright © 2015. All Rights Reserved.