public class PetersonGraph
extends java.lang.Object
Constructor and Description |
---|
PetersonGraph() |
Modifier and Type | Method and Description |
---|---|
static Grph |
petersenGraph(int n,
int k)
Generates a Generates the generalized Pertersen graph, formed by connecting the
vertices of a regular polygon to the corresponding vertices of a star
polygon.
|
public static Grph petersenGraph(int n, int k)
n
- number of vertices of the two polygonsk
- vertex interval step from a regular polygon