transitive.closure | R Documentation |
Computes the transitive closure of a dag or only of a deletion/addition of an edge
transitive.closure(g, u = NULL, v = NULL)
g |
graph as matrix or graphNEL object |
u |
index of the parent of an edge (optional) |
v |
index of the child of an edge (optional) |
transitively closed matrix or graphNEL
Martin Pirkl
g <- matrix(c(0,0,0,1,0,0,0,1,0), 3)
transitive.closure(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.