File: igraph_demo.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,132 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/demo.R
\name{igraph_demo}
\alias{igraph_demo}
\title{Run igraph demos, step by step}
\usage{
igraph_demo(which)
}
\arguments{
\item{which}{If not given, then the names of the available demos are listed.
Otherwise it should be either a filename or the name of an igraph demo.}
}
\value{
Returns \code{NULL}, invisibly.
}
\description{
Run one of the accompanying igraph demos, somewhat interactively, using a Tk
window.
}
\details{
This function provides a somewhat nicer interface to igraph demos that come
with the package, than the standard \code{\link[=demo]{demo()}} function. igraph
demos are divided into chunks and \code{igraph_demo()} runs them chunk by
chunk, with the possibility of inspecting the workspace between two chunks.

The \code{tcltk} package is needed for \code{igraph_demo()}.
}
\examples{

igraph_demo()
if (interactive() && requireNamespace("tcltk", quietly = TRUE)) {
  igraph_demo("centrality")
}

}
\seealso{
\code{\link[=demo]{demo()}}
}
\author{
Gabor Csardi \email{csardi.gabor@gmail.com}
}
\concept{demo}
\keyword{graphs}