File: graph_from_lcf.Rd

package info (click to toggle)
r-cran-igraph 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,044 kB
  • sloc: ansic: 204,981; cpp: 21,711; fortran: 4,090; yacc: 1,229; lex: 519; sh: 52; makefile: 8
file content (43 lines) | stat: -rw-r--r-- 1,352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/make.R
\name{graph_from_lcf}
\alias{graph_from_lcf}
\title{Creating a graph from LCF notation}
\usage{
graph_from_lcf(n, shifts, repeats = 1)
}
\arguments{
\item{n}{Integer, the number of vertices in the graph.}

\item{shifts}{Integer vector, the shifts.}

\item{repeats}{Integer constant, how many times to repeat the shifts.}
}
\value{
A graph object.
}
\description{
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 \url{http://mathworld.wolfram.com/LCFNotation.html} for
details.
}
\examples{

# This is the Franklin graph:
g1 <- graph_from_lcf(12, c(5, -5), 6)
g2 <- make_graph("Franklin")
isomorphic(g1, g2)
}
\seealso{
\code{\link[=make_graph]{make_graph()}} can create arbitrary graphs, see also the other
functions on the its manual page for creating special graphs.
}
\author{
Gabor Csardi \email{csardi.gabor@gmail.com}
}
\keyword{graphs}
\section{Related documentation in the C library}{\href{https://igraph.org/c/html/latest/igraph-Generators.html#igraph_lcf_vector}{\code{igraph_lcf_vector()}}.}