NetworkConnections for undirected networks.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | incidentEdgeMap
Keys are edges incident to the origin node, values are the node at the other end. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addInEdge(E edge, N node, boolean isSelfLoop)
Implements com. edge to the set of incoming edges.
|
| public void | addOutEdge(E edge, N node)
Implements com. edge to the set of outgoing edges.
|
| public N | adjacentNode(E edge)
Implements com. edge.
|
| public Set | |
| public Set | |
| public Set | |
| public Set | |
| public N | removeInEdge(E edge, boolean isSelfLoop)
Implements com. edge from the set of incoming edges.
|
| public N | removeOutEdge(E edge)
Implements com. edge from the set of outgoing edges.
|
| public Set |
| incidentEdgeMap | back to summary |
|---|---|
| pack-priv final Map<E, N> incidentEdgeMap Keys are edges incident to the origin node, values are the node at the other end. | |
| AbstractUndirectedNetworkConnections | back to summary |
|---|---|
| pack-priv AbstractUndirectedNetworkConnections(Map<E, N> incidentEdgeMap) | |
| addInEdge | back to summary |
|---|---|
| public void addInEdge(E edge, N node, boolean isSelfLoop) Implements com. Doc from com. Add
| |
| addOutEdge | back to summary |
|---|---|
| public void addOutEdge(E edge, N node) Implements com. Doc from com. Add
| |
| adjacentNode | back to summary |
|---|---|
| public N adjacentNode(E edge) Implements com. Doc from com. Returns the node that is adjacent to the origin node along In the directed case,
| |
| incidentEdges | back to summary |
|---|---|
| public Set Implements com.
| |
| inEdges | back to summary |
|---|---|
| public Set Implements com.
| |
| outEdges | back to summary |
|---|---|
| public Set Implements com.
| |
| predecessors | back to summary |
|---|---|
| public Set Implements com.
| |
| removeInEdge | back to summary |
|---|---|
| public N removeInEdge(E edge, boolean isSelfLoop) Implements com. Doc from com. Remove In the undirected case, returns
| |
| removeOutEdge | back to summary |
|---|---|
| public N removeOutEdge(E edge) Implements com. Doc from com. Remove
| |
| successors | back to summary |
|---|---|
| public Set Implements com.
| |