Network which adds mutation methods. When mutation is not required,
users should prefer the Network interface.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the network was modified as a result of this callAdds |
| public boolean | Returns: true if the network was modified as a result of this callAdds |
| public boolean | Returns: true if the network was modified as a result of this callAdds |
| public boolean | Returns: true if the network was modified as a result of this callRemoves |
| public boolean | Returns: true if the network was modified as a result of this callRemoves |
| addEdge | back to summary |
|---|---|
| public boolean addEdge(N nodeU, N nodeV, E edge) Adds If the graph is directed,
If If
| |
| addEdge | back to summary |
|---|---|
| public boolean addEdge(EndpointPair<N> endpoints, E edge) Adds 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
If
| |
| addNode | back to summary |
|---|---|
| public boolean addNode(N node) Adds Nodes must be unique, just as
| |
| removeEdge | back to summary |
|---|---|
| public boolean removeEdge(E edge) Removes
| |
| removeNode | back to summary |
|---|---|
| public boolean removeNode(N node) Removes
| |