View source: R/get_periphery.R
get_periphery | R Documentation |
Get those nodes that are part of the graph periphery (i.e., have the maximum eccentricity in the graph).
get_periphery(graph)
graph |
A graph object of class |
A vector of node IDs.
# Create a random graph using the
# `add_gnm_graph()` function and
# get the nodes in the graph periphery
create_graph() %>%
add_gnm_graph(
n = 28,
m = 35,
set_seed = 23) %>%
get_periphery()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.