name_vertices: Quick Naming of the Vertices/Edges in a Graph

Description Usage Arguments Value

View source: R/misc-utilities.R

Description

If the vertex/edges of an igraph object have no name, quickly add a name based on the vertex index/vertices in the edge. For vertices the name is the vertex id, the edges it is 'from->to'.

Usage

1
2
3

Arguments

g

an igraph directed graph

Value

the graph with the vertex attribute 'name'


robertness/lucy documentation built on May 27, 2019, 10:32 a.m.