Mathematical graphs consist of a set of nodes (vertices) and edges.
Edges go between two nodes.
An edge that is directed is often called an arc.
Terms in the formula (delimited by +)
may be either calls to * or /, or objects that
are already of class "mathgraph".
Two other representations of graphs are adjacency matrices and incidence
matrices.
The functions to convert "mathgraph" objects to these
are adjamat and incidmat, respectively.
Most algorithms for mathematical graphs are in terms of incidence matrices
or adjacency matrices.
The generic functions that have a method for class "mathgraph" include:
[, c, length, names, plot, print,
unique.
is.mathgraph is the membership function for this class.