MathTop

graph_radius 函数

返回连通图中各顶点离心率的最小值。

语法

  • GraphTheory:-Radius(edges)
  • graph_radius(edges)

参数与选项

edges形如 [[u, v], ...] 的连通边列表。

示例

  1. 图半径GraphTheory:-Radius([[a, b], [b, c], [c, d]])返回 2。