components_adj: Determine components of graph using adjacency matrix

Description Usage Arguments Details Value

View source: R/network_utils.R

Description

Determines the components of a graph from a (possibly weighted) adjacency matrix using depth-first search

Usage

1

Arguments

x,

a adjacency matrix

Details

indices of the component vector starts from 1 and not 0.

Value

an integer vector with component membership of each node


baruuum/btoolbox documentation built on Aug. 17, 2020, 1:29 a.m.