graph_periphery 函数
返回离心率等于图直径的顶点。
语法
GraphTheory:-Periphery(edges)graph_periphery(edges)
参数与选项
edges | 形如 [[u, v], ...] 的连通边列表。 |
|---|
示例
- 外围顶点
GraphTheory:-Periphery([[a, b], [b, c], [c, d]])返回 [a, d]。
返回离心率等于图直径的顶点。
GraphTheory:-Periphery(edges)graph_periphery(edges)edges | 形如 [[u, v], ...] 的连通边列表。 |
|---|
GraphTheory:-Periphery([[a, b], [b, c], [c, d]])返回 [a, d]。