Macaulay2 » Documentation
Packages » Graphs :: cliqueComplex
next | previous | forward | backward | up | index | toc

cliqueComplex -- Returns the clique complex of a graph

Description

The clique complex of a graph G is the set of all cliques of G.

i1 : G = graph(toList(1..4),{{1, 2}, {1, 3}, {2, 3}, {3, 4}});
i2 : cliqueComplex G

o2 = simplicialComplex | x_3x_4 x_1x_2x_3 |

o2 : SimplicialComplex

See also

Ways to use cliqueComplex:

  • cliqueComplex(Graph)

For the programmer

The object cliqueComplex is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Graphs.m2:3145:0.