var I =//First make a Petersen graph:var petersen =//Now make a more complicated graphvar circ =
Constructs a generalized-generalized Petersen graph.
nis the number of vertices
kis the step for the inner star polygon
j(optional) is the step for the outer star polygon. If not specified, assume 1 and generate a generalized Petersen graph.
Returns The edges of a generalized Petersen graph.
(c) 2013 Mikola Lysenko. MIT License