public class DirectedGraphImpl<N> extends Object implements DirectedGraph<N>
| Modifier and Type | Field and Description |
|---|---|
protected Set<N> |
nodes |
protected Map<N,Set<N>> |
preds |
protected Map<N,Set<N>> |
succs |
| Constructor and Description |
|---|
DirectedGraphImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(N from,
N to) |
void |
addNode(N node) |
Collection<N> |
allNodes() |
Collection<N> |
predsOf(N n) |
Collection<N> |
succsOf(N n) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeReachableNodes, computeRootNodes, computeTailNodespublic void addNode(N node)
public Collection<N> allNodes()
allNodes in interface DirectedGraph<N>public Collection<N> predsOf(N n)
predsOf in interface DirectedGraph<N>public Collection<N> succsOf(N n)
succsOf in interface DirectedGraph<N>Copyright © 2024 Soot OSS. All rights reserved.