next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 web site
Graphs
(missing documentation) ::
isRegular
isRegular -- determines whether a graph is regular
Synopsis
Usage:
r = isRegular G
Inputs:
G
,
an object of class
Graph
(missing documentation)
Outputs:
r
,
a
Boolean value
, whether the graph G is regular or not.
Description
A graph is regular if all of its vertices have the same degree.
i1 : G = cycleGraph 5;
i2 : isRegular G o2 = true
See also
completeGraph
-- Constructs a complete graph
cycleGraph
-- Constructs a cycle graph
Ways to use
isRegular
:
isRegular(Graph)