classList2Graph: Functions to produce graphs from S4 class definitions

Description Usage Arguments Details Value Author(s) Examples

View source: R/S4classes.R

Description

Given either a list of classes, or a single class, these functions produce a graph, with the classes as nodes and edges representing subclass/superclass relationships.

Usage

1
2
classList2Graph(class, fullNames=TRUE)
class2Graph(class, fullNames=TRUE)

Arguments

class

Either the name of a single class, class2Graph, or the names of classes, classList2Graph

fullNames

Indicates whether to use fully qualified (by package) names for the class.

Details

Edges are directed, and go from superclasses to subclasses (more specialized to less specialized).

Value

A graph, typically an instance of the graphNEL class.

Author(s)

R. Gentleman

Examples

1
2
 graphClasses = getClasses("package:graph")
 classList2Graph(graphClasses)

RBioinf documentation built on Nov. 8, 2020, 11:11 p.m.