Graph which adds mutation methods. When mutation is not required, users
should prefer the Graph interface.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the graph was modified as a result of this callAdds |
| public boolean | Returns: true if the graph was modified as a result of this callAdds an edge connecting |
| public boolean | Returns: true if the graph was modified as a result of this callAdds an edge connecting |
| public boolean | Returns: true if the graph was modified as a result of this callRemoves the edge connecting |
| public boolean | Returns: true if the graph was modified as a result of this callRemoves the edge connecting |
| public boolean | Returns: true if the graph was modified as a result of this callRemoves |
| addNode | back to summary |
|---|---|
| public boolean addNode(N node) Adds Nodes must be unique, just as
| |
| putEdge | back to summary |
|---|---|
| public boolean putEdge(N nodeU, N nodeV) Adds an edge connecting If the graph is directed, the resultant edge will be directed; otherwise, it will be undirected. If
| |
| putEdge | back to summary |
|---|---|
| public boolean putEdge(EndpointPair<N> endpoints) Adds an edge connecting If this graph is directed, If this graph is directed, If either or both endpoints are not already present in this graph, this method will silently
| |
| removeEdge | back to summary |
|---|---|
| public boolean removeEdge(N nodeU, N nodeV) Removes the edge connecting
| |
| removeEdge | back to summary |
|---|---|
| public boolean removeEdge(EndpointPair<N> endpoints) Removes the edge connecting If this graph is directed,
| |
| removeNode | back to summary |
|---|---|
| public boolean removeNode(N node) Removes
| |