get_graph_diameter {DiagrammeR} | R Documentation |
Get the graph diameter, which is the maximum eccentricity.
get_graph_diameter(graph)
graph |
a graph object of class
|
the graph diameter as a single-length vector.
# Get the graph diameter for a randomly-created # graph get_graph_diameter( create_random_graph( 5, 7, fully_connected = TRUE, set_seed = 20)) #> [1] 4