N
- Value type that the graph node stores.E
- Value type that the graph edge stores.public interface AdjacencyGraph<N,E>
For a more extensive interface, see Graph
.
Graph
Modifier and Type | Method and Description |
---|---|
void |
clearNodeAnnotations()
Makes each node's annotation null.
|
GraphNode<N,E> |
getNode(N value)
Gets a node from the graph given a value.
|
int |
getNodeCount() |
java.util.Collection<? extends GraphNode<N,E>> |
getNodes()
Gets an immutable list of all nodes.
|
int |
getWeight(N value)
Returns a weight for the given value to be used in ordering nodes, e.g.
|
SubGraph<N,E> |
newSubGraph()
Returns an empty SubGraph for this Graph.
|
java.util.Collection<? extends GraphNode<N,E>> getNodes()
int getNodeCount()
GraphNode<N,E> getNode(N value)
Object.equals
.value
- The node's value.void clearNodeAnnotations()
int getWeight(N value)
GraphColoring
.Copyright © 2009-2018 Google. All Rights Reserved.