Mescal
|
Computation of transitive closures in graphs. More...
Go to the source code of this file.
Functions | |
graph * | compute_dag_of_sccs (graph *, parti *) |
Given as input an arbitrary graph and its partition into SCCs, computes the associated DAG of SCCs (each class of the partition is a vertex). | |
dequeue * | topo_sort_dag (graph *) |
Given a DAG as input, computes a topological ordering on its vertices. | |
dequeue * | topo_sort_dag_start (graph *, uint) |
Given a DAG as input and a vertex of this graph, computes a topological ordering on the vertices that are reachable from the input vertex. | |
graph * | compute_tclos_dag (graph *, dequeue *) |
Computes the transitive closure of a DAG. | |
Computation of transitive closures in graphs.
Given as input an arbitrary graph and its partition into SCCs, computes the associated DAG of SCCs (each class of the partition is a vertex).
G | An arbitray graph. |
clist | The partition into SCCs. |
Computes the transitive closure of a DAG.
G | A directed acyclic graph. |
topo_sort | A list of all vertices sorted according to a topological ordering. |
Given a DAG as input, computes a topological ordering on its vertices.
G | A directed acyclic graph. |
Given a DAG as input and a vertex of this graph, computes a topological ordering on the vertices that are reachable from the input vertex.
G | A directed acyclic graph. |
start | A vertex. |