classGraph (version 0.7-5)

classTree: builds a directed graph, typically a tree from a class Object

Description

From an S4 class, by investigating all subclasses, a inheritance graph is built, a directed graph, often a tree.

Usage

classTree(Cl, all = FALSE, ...)

Value

an R object inheriting from class graph.

Arguments

Cl

class name ...

all

logical indicating if all instead of just direct sub-classes should be used.

...

....

Author

Martin Maechler

See Also

class2Graph, ...

Examples

Run this code
## Using classes and methods from package 'graph' :
trGclass <- classTree("graph")
as(trGclass, "matrix")
plot(trGclass) # using package 'Rgraphviz'

Run the code above in your browser using DataLab