names.mathgraph {mathgraph}R Documentation

Edge Names in a Mathematical Graph

Description

Sets or returns the names (corresponding to the edges) of a mathematical graph represented by a mathgraph object.

Usage

## S3 method for class 'mathgraph':
names(x)
## S3 method for class 'mathgraph':
names(x) <- value

Arguments

x an object inheriting from mathgraph.
value a value to be assigned to the names of the mathgraph.

Details

In the assignment form, the names are created or changed.

Value

Character vector of the names.

Author(s)

Nick Efthymiou

References

S Poetry, Patrick J. Burns, Section 13.3 Mathematical Graphs, http://www.burns-stat.com/pages/spoetry.html

See Also

mathgraph

Examples


jjm <- mathgraph(~ 1:3 * 2:4)
jjm
names(jjm) <- letters[1:length(jjm)]
jjm
names(jjm)


[Package mathgraph version 0.9-8 Index]