ValueGraph which adds mutation methods. When mutation is not required,
users should prefer the ValueGraph interface.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the graph was modified as a result of this callAdds |
| public V | Returns: the value previously associated with the edge connectingnodeU to nodeV, or null if there was no such edge.Adds an edge connecting |
| public V | Returns: the value previously associated with the edge connectingnodeU to nodeV, or null if there was no such edge.Adds an edge connecting |
| public V | Returns: the value previously associated with the edge connectingnodeU to nodeV, or null if there was no such edge.Removes the edge connecting |
| public V | Returns: the value previously associated with the edge connectingendpoints, or null if
there was no such edge.Removes 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
| |
| putEdgeValue | back to summary |
|---|---|
| public V putEdgeValue(N nodeU, N nodeV, V value) Adds an edge connecting If the graph is directed, the resultant edge will be directed; otherwise, it will be undirected. Values do not have to be unique. However, values must be non-null. If
| |
| putEdgeValue | back to summary |
|---|---|
| public V putEdgeValue(EndpointPair<N> endpoints, V value) Adds an edge connecting If the graph is directed, the resultant edge will be directed; otherwise, it will be undirected. If this graph is directed, Values do not have to be unique. However, values must be non-null. If either or both endpoints are not already present in this graph, this method will silently
| |
| removeEdge | back to summary |
|---|---|
| public V removeEdge(N nodeU, N nodeV) Removes the edge connecting
| |
| removeEdge | back to summary |
|---|---|
| public V removeEdge(EndpointPair<N> endpoints) Removes the edge connecting If this graph is directed,
| |
| removeNode | back to summary |
|---|---|
| public boolean removeNode(N node) Removes
| |