graph_vertices 函数
返回无向边列表中出现的顶点。
语法
GraphTheory:-Vertices([[u1, v1], ...])graph_vertices(edges)
参数与选项
edges | 形如 [[u, v], ...] 的边列表。 |
|---|
示例
- 图顶点
GraphTheory:-Vertices([[a, b], [b, c], [c, a], [c, d]])返回 [a, b, c, d]。
返回无向边列表中出现的顶点。
GraphTheory:-Vertices([[u1, v1], ...])graph_vertices(edges)edges | 形如 [[u, v], ...] 的边列表。 |
|---|
GraphTheory:-Vertices([[a, b], [b, c], [c, a], [c, d]])返回 [a, b, c, d]。