/
complete-undirected-graphs.lagda.md
48 lines (35 loc) · 1.47 KB
/
complete-undirected-graphs.lagda.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Complete undirected graphs
```agda
module graph-theory.complete-undirected-graphs where
```
<details><summary>Imports</summary>
```agda
open import foundation.universe-levels
open import graph-theory.complete-multipartite-graphs
open import graph-theory.finite-graphs
open import univalent-combinatorics.finite-types
```
</details>
## Idea
A
{{#concept "complete undirected graph" Agda=complete-Undirected-Graph-𝔽 WD="complete graph" WDID=Q45715}}
is a [complete multipartite graph](graph-theory.complete-multipartite-graphs.md)
in which every block has exactly one vertex. In other words, it is an
[undirected graph](graph-theory.undirected-graphs.md) in which every vertex is
connected to every other vertex.
There are many ways of presenting complete undirected graphs. For example, the
type of edges in a complete undirected graph is a
[2-element subtype](univalent-combinatorics.2-element-subtypes.md) of the type
of its vertices.
## Definition
```agda
complete-Undirected-Graph-𝔽 : {l : Level} → 𝔽 l → Undirected-Graph-𝔽 l l
complete-Undirected-Graph-𝔽 X =
complete-multipartite-Undirected-Graph-𝔽 X (λ x → unit-𝔽)
```
## External links
- [Complete graph](https://d3gt.com/unit.html?complete-graph) at D3 Graph theory
- [Complete graph](https://www.wikidata.org/entity/Q45715) on Wikidata
- [Complete graph](https://en.wikipedia.org/wiki/Complete_graph) on Wikipedia
- [Complete graph](https://mathworld.wolfram.com/CompleteGraph.html) at Wolfram
Mathworld