Graph and ValueGraph.
| Modifier and Type | Method and Description |
|---|---|
| public Set | adjacentNodes(N node)
Returns the nodes which have an incident edge in common with |
| public boolean | allowsSelfLoops()
Returns true if this graph allows self-loops (edges that connect a node to itself). |
| public int | degree(N node)
Returns the count of |
| public Set | |
| public boolean | hasEdgeConnecting(N nodeU, N nodeV)
Returns true if there is an edge that directly connects |
| public boolean | hasEdgeConnecting(EndpointPair<N> endpoints)
Returns true if there is an edge that directly connects |
| public ElementOrder | incidentEdgeOrder()
Returns an |
| public Set | |
| public int | inDegree(N node)
Returns the count of |
| public boolean | |
| public ElementOrder | |
| public Set | |
| public int | outDegree(N node)
Returns the count of |
| public Set | predecessors(N node)
Redeclares com. node which can be reached by traversing
node's incoming edges against the direction (if any) of the edge.
|
| public Set | successors(N node)
Redeclares com. node which can be reached by traversing
node's outgoing edges in the direction (if any) of the edge.
|
| adjacentNodes | back to summary |
|---|---|
| public Set Returns the nodes which have an incident edge in common with This is equal to the union of
| |
| allowsSelfLoops | back to summary |
|---|---|
| public boolean allowsSelfLoops() Returns true if this graph allows self-loops (edges that connect a node to itself). Attempting
to add a self-loop to a graph that does not allow them will throw an | |
| degree | back to summary |
|---|---|
| public int degree(N node) Returns the count of For directed graphs, this is equal to For undirected graphs, this is equal to If the count is greater than
| |
| edges | back to summary |
|---|---|
| public Set Returns all edges in this graph. | |
| hasEdgeConnecting | back to summary |
|---|---|
| public boolean hasEdgeConnecting(N nodeU, N nodeV) Returns true if there is an edge that directly connects In an undirected graph, this is equal to
| |
| hasEdgeConnecting | back to summary |
|---|---|
| public boolean hasEdgeConnecting(EndpointPair<N> endpoints) Returns true if there is an edge that directly connects Unlike the other
| |
| incidentEdgeOrder | back to summary |
|---|---|
| public ElementOrder Returns an
| |
| incidentEdges | back to summary |
|---|---|
| public Set Returns the edges in this graph whose endpoints include This is equal to the union of incoming and outgoing edges.
| |
| inDegree | back to summary |
|---|---|
| public int inDegree(N node) Returns the count of If the count is greater than
| |
| isDirected | back to summary |
|---|---|
| public boolean isDirected() Returns true if the edges in this graph are directed. Directed edges connect a | |
| nodeOrder | back to summary |
|---|---|
| public ElementOrder Returns the order of iteration for the elements of | |
| nodes | back to summary |
|---|---|
| public Set Returns all nodes in this graph, in the order specified by | |
| outDegree | back to summary |
|---|---|
| public int outDegree(N node) Returns the count of If the count is greater than
| |
| predecessors | back to summary |
|---|---|
| public Set Redeclares com. Returns all nodes in this graph adjacent to In an undirected graph, this is equivalent to
| |
| successors | back to summary |
|---|---|
| public Set Redeclares com. Returns all nodes in this graph adjacent to In an undirected graph, this is equivalent to This is not the same as "all nodes reachable from
| |