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

View source: R/Class-hier-fn.R

classTreeR Documentation

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, ...)

Arguments

Cl

class name ...

all

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

...

....

Value

an R object inheriting from class graph.

Author(s)

Martin Maechler

See Also

class2Graph, ...

Examples

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

classGraph documentation built on Aug. 22, 2023, 1:06 a.m.