as_adj_list1: Adjacency list

View source: R/graph_structures.R

as_adj_list1R Documentation

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)

Arguments

g

An igraph object

Details

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

Value

A list of numeric vectors.

Author(s)

David Schoch

Examples

library(igraph)
g <- make_ring(10)
as_adj_list1(g)

schochastics/netUtils documentation built on Oct. 17, 2024, 10:45 a.m.