NetworkConnections for directed networks.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | inEdgeMap
Keys are edges incoming to the origin node, values are the source node. |
| pack-priv final Map | outEdgeMap
Keys are edges outgoing from the origin node, values are the target node. |
| private int |
| 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.
|
| inEdgeMap | back to summary |
|---|---|
| pack-priv final Map<E, N> inEdgeMap Keys are edges incoming to the origin node, values are the source node. | |
| outEdgeMap | back to summary |
|---|---|
| pack-priv final Map<E, N> outEdgeMap Keys are edges outgoing from the origin node, values are the target node. | |
| selfLoopCount | back to summary |
|---|---|
| private int selfLoopCount | |
| AbstractDirectedNetworkConnections | back to summary |
|---|---|
| pack-priv AbstractDirectedNetworkConnections(Map<E, N> inEdgeMap, Map<E, N> outEdgeMap, int selfLoopCount) | |
| 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,
| |
| adjacentNodes | back to summary |
|---|---|
| public Set Implements com.
| |
| incidentEdges | back to summary |
|---|---|
| public Set Implements com.
| |
| inEdges | back to summary |
|---|---|
| public Set Implements com.
| |
| outEdges | 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
| |