vertices_add_distance_to_root: Add the distance to each vertex to the graph's root

View source: R/economic_activity_hierachy.R

vertices_add_distance_to_rootR Documentation

Add the distance to each vertex to the graph's root

Description

Add the distance to each vertex to the graph's root

Usage

vertices_add_distance_to_root(graph, vertex_attribute = "dist_to_root")

Arguments

graph

The graph to do the searhing in

vertex_attribute

the name you want the vertex distance attribute to have

Value

Graph

Examples

vertices_add_distance_to_root(graph = graph_SBI, vertex_attribute = "qty_hops_to_root")

mark-me/graydon.package documentation built on Nov. 14, 2023, 5:31 p.m.