R/TreeFunctions.R
GetPredecessors.Rd
Get the predecessor vector for a dominator tree encoded as an undirected tree and root
GetPredecessors(minspantree, root)
minspantree | the tree to be directionalized |
---|---|
root | the id of the root |
a vector[] of node ids, where vector[i] is the predecessor of node i