DiagrammeR (version 0.9.0)

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
# }

Run the code above in your browser using DataCamp Workspace