dodgr_components: dodgr_components

Description Usage Arguments Value Examples

Description

Identify connected components of graph and add corresponding component column to data.frame.

Usage

1

Arguments

graph

A data.frame of edges

Value

Equivalent graph with additional component column, sequentially numbered from 1 = largest component.

Examples

1
2
graph <- weight_streetnet (hampi)
graph <- dodgr_components (graph)

dodgr documentation built on Aug. 8, 2021, 1:06 a.m.