graph_from_lcf | R Documentation |
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.
graph_from_lcf(n, shifts, repeats = 1)
n |
Integer, the number of vertices in the graph. |
shifts |
Integer vector, the shifts. |
repeats |
Integer constant, how many times to repeat the shifts. |
A graph object.
Gabor Csardi csardi.gabor@gmail.com
make_graph()
can create arbitrary graphs, see also the other
functions on the its manual page for creating special graphs.
# This is the Franklin graph:
g1 <- graph_from_lcf(12, c(5, -5), 6)
g2 <- make_graph("Franklin")
isomorphic(g1, g2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.