graph_maximum_clique 函数
返回一组两两相邻的最大顶点集合。
语法
GraphTheory:-MaximumClique(edges)graph_maximum_clique(edges)
参数与选项
edges | 形如 [[u, v], ...] 的无向边列表。 |
|---|
示例
- 最大团
GraphTheory:-MaximumClique([[a, b], [b, c], [c, a], [c, d]])返回 [a, b, c]。
返回一组两两相邻的最大顶点集合。
GraphTheory:-MaximumClique(edges)graph_maximum_clique(edges)edges | 形如 [[u, v], ...] 的无向边列表。 |
|---|
GraphTheory:-MaximumClique([[a, b], [b, c], [c, a], [c, d]])返回 [a, b, c]。