extract.trajectory.edge.lengths: Extract Edge Lengths Along a Graph Path

View source: R/graph_utils.R

extract.trajectory.edge.lengthsR Documentation

Extract Edge Lengths Along a Graph Path

Description

Extract Edge Lengths Along a Graph Path

Usage

extract.trajectory.edge.lengths(
  traj,
  adj.list,
  edge.length.list,
  add.quantiles = FALSE
)

Arguments

traj

Numeric or integer vector of consecutive graph vertices.

adj.list

Adjacency list.

edge.length.list

Edge-length list aligned with adj.list.

add.quantiles

Logical; if TRUE, add edge-length empirical quantiles.

Value

Data frame with consecutive vertex pairs and their edge lengths.


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