powered by
dominatorTree(g, start=nodes(g)[1]) lengauerTarjanDominatorTree(g, start=nodes(g)[1])
graph
g
A vertex u dominates a vertex v, if every path of directed graph from the entry to v must go through u.
This function builds the dominator tree for a directed graph.
con1 <- file(system.file("XML/dominator.gxl",package="RBGL"), open="r") g1 <- fromGXL(con1) close(con1) dominatorTree(g1) lengauerTarjanDominatorTree(g1)
Run the code above in your browser using DataLab