Learn R Programming

netUtils (version 0.8.3)

as_adj_list1: Adjacency list

Description

Create adjacency lists from a graph, either for adjacent edges or for neighboring vertices. This version is faster than the version of igraph but less general.

Usage

as_adj_list1(g)

Value

A list of numeric vectors.

Arguments

g

An igraph object

Author

David Schoch

Details

The function does not have a mode parameter and only returns the adjacency list comparable to as_adj_list(g,mode="all)

Examples

Run this code
library(igraph)
g <- make_ring(10)
as_adj_list1(g)

Run the code above in your browser using DataLab