Directedg graph inehrited from Graph. This type is mostly used by primary graph algorithms, such as the dominator algorithm. We only expose static members here to make code consistent for both persistent and imperative graphs.
Constructor | Description |
|
|
Static member | Description |
|
|
|
Add a dummy vertex to the graph. Dummy nodes are necessary when we run some graph algorithms, and such nodes should be removed appropriately before we return the final results.
|
|
|
|
|
|
|
|
|
|
Find an edge and return the data attached to it. This function raises an exception when there is no matching edge.
|
|
Find vertex by the given predicate. This function raises an exception when there is no matching vertex.
|
|
Find vertex by given data. This function raises an exception when there is no matching vertex in the graph.
|
|
Find vertex by VertexID. This function raises an exception when the given ID does not exist in the graph.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|