get_connected_component: Find a connected component of a directed graph.

Description Usage Arguments

View source: R/branchmodel_numerical.R

Description

Find a connected component of a directed graph.

Usage

1
get_connected_component(neighbors, start_idx)

Arguments

neighbors

neighbors directly reachable from each vertex, so there is an edge from 'i' to 'neighbors[i, j]'. (This is built for knn graphs, hence the weird representation.)

start_idx

Algorithm starts here and searches outward.


ekernf01/branchmodel documentation built on Oct. 24, 2020, 8:56 a.m.