degree: Compute matrix with degree of each vertex on the diagonal

Description Usage Arguments Value Examples

View source: R/specc.R

Description

Compute matrix with degree of each vertex on the diagonal

Usage

1
degree(adjacency.mat)

Arguments

adjacency.mat

Adjacency matrix

Value

Matrix with degrees of vertex i on [ i, i ]

Examples

1
2
3
adjacency.mat = adjacency(pairwiseDistance(iris[1:50,1:4]),
similarity(iris[1:50,1:4]), 2)
degree(adjacency.mat)

alyssajs/CS599 documentation built on June 17, 2021, 6:29 p.m.