Example usage for Java com.google.common.graph Graph fields, constructors, methods, implement or subclass
The text is from its open source code.
Set | adjacentNodes(Object node) Returns the nodes which have an incident edge in common with node in this graph. |
int | degree(Object node) Returns the number of edges incident in this graph to node . |
boolean | isDirected() Returns true if the edges in this graph have a direction associated with them. |
Set | nodes() Returns all nodes in this graph. |
Set | predecessors(Object node) Returns all nodes in this graph adjacent to node which can be reached by traversing node 's incoming edges against the direction (if any) of the edge. |
Set | successors(Object node) Returns all nodes in this graph adjacent to node which can be reached by traversing node 's outgoing edges in the direction (if any) of the edge. |