extract.edge.lengths: Extract Unique Edge Lengths from an Undirected Graph

View source: R/graph_utils.R

extract.edge.lengthsR Documentation

Extract Unique Edge Lengths from an Undirected Graph

Description

Extract Unique Edge Lengths from an Undirected Graph

Usage

extract.edge.lengths(
  adj.list,
  edge.length.list,
  method = c("vectorized", "preallocate", "parallel"),
  mc.cores = 2
)

Arguments

adj.list

Adjacency list.

edge.length.list

Edge-length list aligned with adj.list.

method

Extraction method: "vectorized", "preallocate", or "parallel".

mc.cores

Number of cores for method = "parallel".

Value

Numeric vector of unique undirected edge lengths.


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