GraphTheory[IsRegular]
|
Calling Sequence
|
|
IsRegular(G)
IsRegular(G, d)
|
|
Parameters
|
|
G
|
-
|
graph
|
d
|
-
|
(optional) name
|
|
|
|
|
Description
|
|
•
|
An undirected graph G is regular if each vertex has the same degree. For example, CycleGraph(4) is a regular graph of degree 2.
|
•
|
The IsRegular command returns true if the graph is regular and false otherwise. If a name d is specified, then this name is assigned the degree of the graph. If the graph is not regular and a name is specified, then the name is assigned FAIL.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
|
|
Download Help Document
Was this information helpful?