indexed_edges_to_graph: Graph from integer index edge list

View source: R/orca_interface.R

indexed_edges_to_graphR Documentation

Graph from integer index edge list

Description

Takes an integer indexed edgelist (where each edge is represented by the integer indexes of its vertices) and converts it to an igraph format graph. If the edge list has a "vertex_names" attribute, this will be used to name the vertices in the resultant graph.

Usage

indexed_edges_to_graph(indexed_edges)

Arguments

indexed_edges

A 2 x numEdges edgelist with vertices labelled with integer indices, with an optional "vertex_names" attribute

Value

An igraph graph object


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