powered by
Get those nodes that are part of the graph periphery (i.e., have the maximum eccentricity in the graph).
get_periphery(graph)
a graph object of class dgr_graph.
dgr_graph
a vector of node IDs.
# NOT RUN { # Get the nodes that are in the graph periphery # of a randomly-created graph create_random_graph( n = 15, m = 24, set_seed = 23) %>% get_periphery() #> [1] 3 6 # }
Run the code above in your browser using DataLab