Interface SubGraph<N,E>
- Type Parameters:
N- Value type that the graph node stores.E- Value type that the graph edge stores.
public interface SubGraph<N,E>
An interface representing a subgraph that provides adjacency calculation to
a node.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the node into this subgraph.booleanisIndependentOf(N node) Returns true if the node is a neighbor of any node in this SubGraph.
-
Method Details
-
isIndependentOf
Returns true if the node is a neighbor of any node in this SubGraph. -
addNode
Adds the node into this subgraph.
-