File: graph_id.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 (32 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (4)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iterators.R
\name{graph_id}
\alias{graph_id}
\title{Get the id of a graph}
\usage{
graph_id(x, ...)
}
\arguments{
\item{x}{A graph or a vertex sequence or an edge sequence.}

\item{...}{Not used currently.}
}
\value{
The id of the graph, a character scalar. For
vertex and edge sequences the id of the graph they were created from.
}
\description{
Graph ids are used to check that a vertex or edge sequence
belongs to a graph. If you create a new graph by changing the
structure of a graph, the new graph will have a new id.
Changing the attributes will not change the id.
}
\examples{
g <- make_ring(10)
graph_id(g)
graph_id(V(g))
graph_id(E(g))

g2 <- g + 1
graph_id(g2)
}