Graph implementations to be backed by a BaseGraph. This is not
currently planned to be released as a general-purpose forwarding class.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| ForwardingGraph | back to summary |
|---|---|
| pack-priv ForwardingGraph() | |
| adjacentNodes | back to summary |
|---|---|
| public Set Implements com. Doc from com. 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() Implements com. Doc from com. 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) Overrides com. Implements com. Doc from com. Returns the count of For directed graphs, this is equal to For undirected graphs, this is equal to If the count is greater than
| |
| delegate | back to summary |
|---|---|
| pack-priv abstract BaseGraph | |
| edgeCount | back to summary |
|---|---|
| protected long edgeCount() Overrides com. Defer to
| |
| hasEdgeConnecting | back to summary |
|---|---|
| public boolean hasEdgeConnecting(N nodeU, N nodeV) Overrides com. Implements com. Doc from com. 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) Overrides com. Implements com. Doc from com. Returns true if there is an edge that directly connects Unlike the other
| |
| incidentEdgeOrder | back to summary |
|---|---|
| public ElementOrder Overrides com. Implements com. Doc from com. Returns an
| |
| incidentEdges | back to summary |
|---|---|
| public Set Overrides com. Implements com. Doc from com. 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) Overrides com. Implements com. Doc from com. Returns the count of If the count is greater than
| |
| isDirected | back to summary |
|---|---|
| public boolean isDirected() Implements com. Doc from com. Returns true if the edges in this graph are directed. Directed edges connect a
| |
| nodeOrder | back to summary |
|---|---|
| public ElementOrder Implements com. Doc from com. Returns the order of iteration for the elements of
| |
| nodes | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns all nodes in this graph, in the order specified by
| |
| outDegree | back to summary |
|---|---|
| public int outDegree(N node) Overrides com. Implements com. Doc from com. Returns the count of If the count is greater than
| |
| predecessors | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns all nodes in this graph adjacent to In an undirected graph, this is equivalent to
| |
| successors | back to summary |
|---|---|
| public Set Implements com. Doc from 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
| |