Maximal cliques and triangles
DefinitionSizes of maximal cliques#✓fully proved
SimpleGraph.maximalCliqueSizes
For a simple graph \(G\), this is the set of natural numbers \(k\) such that some finite clique of \(G\) with exactly \(k\) vertices is maximal under inclusion among the finite cliques of \(G\), that is, no finite clique of \(G\) strictly contains it.
An infinite maximal clique of \(G\) contributes no size to this set.
DefinitionTriangles containing an edge#✓fully proved
SimpleGraph.trianglesContaining
For a simple graph \(G\) on a finite vertex set and an edge \(uv\) of \(G\), this is the finite set of triangles of \(G\) that contain the edge \(uv\), where a triangle is the vertex set of a \(3\)-clique of \(G\); that is, the \(3\)-cliques of \(G\) containing both \(u\) and \(v\).
noncomputable def trianglesContaining {α : Type*} [Fintype α] (G : SimpleGraph α)
(uv : G.edgeSet) : Finset (Finset α) :=
(G.cliqueFinset 3).filter (fun t ↦ uv.1.toFinset ⊆ t)
Used by 1
2 fully proved
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.