graph_id

0th

Percentile

Get the id of a graph

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.

Usage
graph_id(x, ...)
Arguments
x

A graph or a vertex sequence or an edge sequence.

...

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.

Aliases
  • graph_id
Examples
# NOT RUN {
g <- make_ring(10)
graph_id(g)
graph_id(V(g))
graph_id(E(g))

g2 <- g + 1
graph_id(g2)
# }
Documentation reproduced from package igraph, version 1.2.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.