Learn R Programming

trafficCAR (version 0.1.0)

degree_matrix: Degree matrix from adjacency

Description

Degree matrix from adjacency

Usage

degree_matrix(A)

Value

Diagonal sparse matrix of row sums.

Arguments

A

Sparse symmetric adjacency matrix.