powered by
subcomponent(graph, v, mode = c("all", "out", "in"))
v
clusters
g <- erdos.renyi.game(100, 1/200) subcomponent(g, 1, "in") subcomponent(g, 1, "out") subcomponent(g, 1, "all")
Run the code above in your browser using DataLab