View source: R/get_eccentricity.R
| get_eccentricity | R Documentation | 
Get a data frame with node eccentricity values.
get_eccentricity(graph, mode = "out")
graph | 
 A graph object of class   | 
mode | 
 the mode with which the shortest paths to or from the given
vertices should be calculated for directed graphs. If   | 
A data frame containing eccentricity values by node ID value.
# Create a random graph using the
# `add_gnm_graph()` function
graph <-
  create_graph(
    directed = FALSE) %>%
  add_gnm_graph(
    n = 10,
    m = 15,
    set_seed = 23)
# Get the eccentricity values for
# all nodes in the graph
graph %>% get_eccentricity()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.