Simple directed graph forming a cycle of n vertices numbered from 0 to n-1.
REQUIRE: n > 0
AnythingObjectBasic ...and other supertypesImplicitAdjacencyGraph ...and other supertypesno subtypes hierarchy
| Initializer |
Cycle(Integer n)Parameters:
|
| Attributes | |
empty | Source Codeshared actual Boolean emptyAnswer whether the graph is empty, i.e. contains no vertices. Refines ImplicitAdjacencyGraph.empty (empty) ultimately refines AdjacencyGraph.empty (empty) |
vertices | Source Codeshared actual default {Integer*} verticesAll vertices of the graph. Refines VertexList.vertices (vertices) |
| Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: AdjacencyGraph<V>empty, notEmpty |
Attributes inherited from: VertexList<V>vertices |
| Inherited Methods |
Methods inherited from: ImplicitAdjacencyGraph<V>bfsTraversal, neighbors |
Methods inherited from: Object |
Methods inherited from: AdjacencyGraph<V>containsEdge, degreeOf, forEachNeighbor, hasNeighbors, neighbors |
Methods inherited from: VertexList<V>containsVertex |