* val g = Graph (Array (Set (4, 5), // 0 // adj Set (5), // 1 Set (6, 7), // 2 Set (7, 8), // 3 Set (0, 5, 9), // 4 Set (0, 1, 4, 6, 10), // 5 Set (2, 5, 7, 10, 11), // 6 Set (2, 3, 6, 8), // 7 Set (3, 7, 12), // 8 Set (4), // 9 Set (5, 6), // 10 Set (6), // 11 Set (8))) // 12 *
The
GraphMetricsTest
object is used to test theGraphMetrics
class.http://math.stackexchange.com/questions/240556/radius-diameter-and-center-of-graph