clusterGraph-class {graph}R Documentation

Class "clusterGraph"

Description

A cluster graph is a special sort of graph for clustered data. Each cluster forms a completely connected subgraph. Three are no edges between clusters.

Objects from the Class

Objects can be created by calls of the form new("clusterGraph", ...).

Slots

clusters:
Object of class "list" a list of the labels of the elements, one element of the list for each cluster.

Extends

Class "graph", directly.

Methods

connComp
signature(object = "clusterGraph"): find the connected components; simply the clusters in this case.
acc
signature(object = "clusterGraph"): find the accessible nodes from the supplied node.
adj
signature(object = "clusterGraph"): find the adjacent nodes to the supplied node.
nodes
signature(object = "clusterGraph"): return the nodes.
numNodes
signature(object = "clusterGraph"): return the number of nodes.

Author(s)

R. Gentleman

See Also

graph-class, distGraph-class

Examples

  cG1 <- new("clusterGraph", clusters=list(a=c(1,2,3), b=c(4,5,6)))
  cG1

[Package Contents]