org._3pq.jgrapht.generate
Class RingGraphGenerator
java.lang.Object
org._3pq.jgrapht.generate.RingGraphGenerator
- GraphGenerator
public class RingGraphGenerator
extends java.lang.Object
Generates a ring graph of any size. A ring graph is a graph that contains a
single cycle that passes through all its vertices exactly once. For a
directed graph, the generated edges are oriented consistently around the
ring.
RingGraphGenerator
public RingGraphGenerator(int size)
Construct a new RingGraphGenerator.
size
- number of vertices to be generated