graph.adj.mat: Convert Coordinates and Edges to a Weighted Adjacency Matrix

View source: R/basic_graphs.R

graph.adj.matR Documentation

Convert Coordinates and Edges to a Weighted Adjacency Matrix

Description

Convert Coordinates and Edges to a Weighted Adjacency Matrix

Usage

graph.adj.mat(X, E)

Arguments

X

Numeric coordinate matrix.

E

Two-column matrix of 1-based edge endpoints.

Value

Symmetric weighted adjacency matrix with Euclidean edge lengths.


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