Creating a graph from LCF notationSource:
LCF is short for Lederberg-Coxeter-Frucht, it is a concise notation for 3-regular Hamiltonian graphs. It constists of three parameters, the number of vertices in the graph, a list of shifts giving additional edges to a cycle backbone and another integer giving how many times the shifts should be performed. See http://mathworld.wolfram.com/LCFNotation.html for details.
Integer, the number of vertices in the graph.
Integer vector, the shifts.
Integer constant, how many times to repeat the shifts.
graph() can create arbitrary graphs, see also the other
functions on the its manual page for creating special graphs.
Gabor Csardi email@example.com