graph_to_indexed_edges: Integer index edge list from igraph

View source: R/orca_interface.R

graph_to_indexed_edgesR Documentation

Integer index edge list from igraph

Description

Takes a igraph graph object and generates an edgelist where each edge is represented by the integer indexes of its vertices. Note that, where a graph has isolated vertices, the indexes for these vertices will not be present in the edge list. Where a graph has no isolated vertices, the edge list will include all vertex indexes from 1 to numVertices.

Usage

graph_to_indexed_edges(graph)

Arguments

graph

An igraph graph object

Value

A 2 x numEdges edgelist with vertices labelled with integer indices and a 1 x numVertices node list where the Nth element of the vector contains the label for the vertice represented by index N in the edgelist


alan-turing-institute/network-comparison documentation built on June 7, 2022, 10:41 p.m.