powered by
Get the graph diameter, which is the maximum eccentricity.
get_graph_diameter(graph)
a graph object of class dgr_graph.
dgr_graph
the graph diameter as a single-length vector.
# NOT RUN { # Get the graph diameter for a # randomly-created graph get_graph_diameter( create_random_graph( n = 5, m = 7, set_seed = 23)) #> [1] 3 # }
Run the code above in your browser using DataLab