new("clusterGraph", ...)
.clusters
:"list"
a list of the
labels of the elements, one element of the list for each cluster. "graph"
, directly.signature(object = "clusterGraph")
: find the
connected components; simply the clusters in this case. signature(object = "clusterGraph")
: find the
accessible nodes from the supplied node. signature(object = "clusterGraph")
: find the
adjacent nodes to the supplied node. signature(object = "clusterGraph")
: return the
nodes. signature(object="clusterGraph", value="character")
:
replace the node names with the new labels given in value
.signature(object = "clusterGraph")
: return
the number of nodes. edges
method.signature(graph = "clusterGraph")
: A method for
obtaining the edge list.signature(from = "clusterGraph", to =
"matrix")
: Convert the clusterGraph
to an adjacency
matrix. Currently, weights are ignored. The conversion assumes
no self-loops.graph-class
, distGraph-class
cG1 <- new("clusterGraph", clusters=list(a=c(1,2,3), b=c(4,5,6)))
cG1
acc(cG1, c("1", "2"))
Run the code above in your browser using DataLab