is.connected(graph, mode=c("weak", "strong"))
clusters(graph, mode=c("weak", "strong"))
no.clusters(graph, mode=c("weak", "strong"))
cluster.distribution(graph, cumulative = FALSE, mul.size = FALSE, ...)cluster, right
now only mode makes sense.is.connected a logical constant.
For clusters a named list with three components:
cluster.distributionis.connected decides whether the graph is weakly or strongly
connected. clusters finds the maximal (weakly or strongly) connected
components of a graph.
no.clusters does almost the same as clusters but returns
only the number of clusters found instead of returning the actual
clusters.
cluster.distribution creates a histogram for the maximal
connected component sizes.
Breadth-first search is conducted from each not-yet visited
vertex.
subcomponentg <- erdos.renyi.game(20, 1/20)
clusters(g)Run the code above in your browser using DataLab