log2diameter
Log2diameter is the base-2 logarithm of the diameter of a graph. For a simple undirected graph G = (V,E), the diameter Diam(G) is the maximum distance between any two vertices, where distance is the length of a shortest path. If G is disconnected, Diam(G) is undefined (infinite) and log2diameter is typically defined only for connected graphs or for the diameter of a chosen component.
Interpreting log2diameter: it provides a logarithmic scale for the size of a graph in terms of its
Examples: A path graph on n vertices has Diam = n−1, so log2diameter = log2(n−1). A complete graph
Computation and variants: To compute, one can run all-pairs shortest-path algorithms (such as Floyd–Warshall for weighted
Applications and context: Log2diameter is a derived metric used in theoretical analyses and comparative studies where