Graph/tree_diameter library

Functions

treeDiameter<T>(Map<T, List<T>> tree) Map<String, dynamic>
Computes the diameter of a tree (longest path between any two nodes).