convert.adjacency.to.edge.matrix: Convert an Adjacency List to an Edge Matrix

View source: R/basic_graphs.R

convert.adjacency.to.edge.matrixR Documentation

Convert an Adjacency List to an Edge Matrix

Description

Convert an Adjacency List to an Edge Matrix

Usage

convert.adjacency.to.edge.matrix(adj.list, weights.list = NULL)

Arguments

adj.list

A 1-based adjacency list.

weights.list

Optional edge-weight list aligned with adj.list.

Value

A list with edge.matrix and weights.


dgraphs documentation built on Aug. 21, 2026, 1:08 a.m.