Learn R Programming

DiagrammeR (version 0.8.4)

get_periphery: Get nodes that form the graph periphery

Description

Get those nodes that are part of the graph periphery (i.e., have the maximum eccentricity in the graph).

Usage

get_periphery(graph)

Arguments

graph
a graph object of class dgr_graph.

Value

a vector of node IDs.

Examples

Run this code
## Not run: 
# # Get the nodes that are in the graph periphery of
# # a randomly-created graph
# get_periphery(
#   create_random_graph(
#     15, 24,
#     fully_connected = TRUE,
#     set_seed = 20))
# #> [1] "13"
# ## End(Not run)

Run the code above in your browser using DataLab