Learn R Programming

mathgraph (version 0.9-5)

names.mathgraph: 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.

Value

  • Character vector of the names.

Details

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

References

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

See Also

mathgraph

Examples

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

Run the code above in your browser using DataLab