View source: R/economic_activity_hierachy.R
vertices_add_distance_to_root | R Documentation |
Add the distance to each vertex to the graph's root
vertices_add_distance_to_root(graph, vertex_attribute = "dist_to_root")
graph |
The graph to do the searhing in |
vertex_attribute |
the name you want the vertex distance attribute to have |
Graph
vertices_add_distance_to_root(graph = graph_SBI, vertex_attribute = "qty_hops_to_root")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.