Learn R Programming

MPSEM (version 0.3-6)

graph-class: Graph class and methods

Description

Class and methods to handle graphs.

Usage

# S3 method for graph
print(x, ...)

Arguments

x

An object of graph-class

...

Additional parameters to be passed to the method. Currently ignored.

Value

A graph-class object contains:

edge

a list whose first two unnamed members are the indices of the origin and destination vertices. Additional members must be named and are additional edge properties (e.g. length), and

vertex

a list that optionally contain vertex properties, if any (or an empty list if none).

Details

Prints user-relevant information about the graph: number of edges and vertices, edge and vertex labels, addition edge properties and vertex properties.

References

Gu<U+00E9>nard, G., Legendre, P., and Peres-Neto, P. 2013. Phylogenetic eigenvector maps (PEM): a framework to model and predict species traits. Meth. Ecol. Evol. In press.

See Also

PEM.build PEM-class