Modifier and Type | Field and Description |
---|---|
private Graph<N,E> |
graph |
private java.util.List<GraphNode<N,E>> |
nodes |
Constructor and Description |
---|
SimpleSubGraph(Graph<N,E> graph) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(N value)
Adds the node into this subgraph.
|
boolean |
isIndependentOf(N value)
Returns true if the node is a neighbor of any node in this SubGraph.
|