Embeddings of directed graphs
Content created by Egbert Rijke, Fredrik Bakke and Jonathan Prieto-Cubides.
Created on 2023-01-22.
Last modified on 2025-10-31.
module graph-theory.embeddings-directed-graphs where
Imports
open import foundation.dependent-pair-types open import foundation.embeddings open import foundation.propositions open import foundation.universe-levels open import graph-theory.directed-graphs open import graph-theory.morphisms-directed-graphs
Idea
An
embedding¶
of directed graphs is a
morphism of directed graphs
f : G → H which is an embedding on vertices such
that for each pair (x , y) of vertices in G the map
edge-hom-Graph G H : edge-Graph G p → edge-Graph H x y
is also an embedding. Embeddings of directed graphs correspond to directed subgraphs.
Note: Our notion of embeddings of directed graphs differs quite substantially from the graph theoretic notion of graph embedding, which usually refers to an embedding of a graph into the plane.
Definition
module _ {l1 l2 l3 l4 : Level} (G : Directed-Graph l1 l2) (H : Directed-Graph l3 l4) where is-emb-hom-Directed-Graph-Prop : hom-Directed-Graph G H → Prop (l1 ⊔ l2 ⊔ l3 ⊔ l4) is-emb-hom-Directed-Graph-Prop f = product-Prop ( is-emb-Prop (vertex-hom-Directed-Graph G H f)) ( Π-Prop ( vertex-Directed-Graph G) ( λ x → Π-Prop ( vertex-Directed-Graph G) ( λ y → is-emb-Prop (edge-hom-Directed-Graph G H f {x} {y})))) is-emb-hom-Directed-Graph : hom-Directed-Graph G H → UU (l1 ⊔ l2 ⊔ l3 ⊔ l4) is-emb-hom-Directed-Graph f = type-Prop (is-emb-hom-Directed-Graph-Prop f) emb-Directed-Graph : UU (l1 ⊔ l2 ⊔ l3 ⊔ l4) emb-Directed-Graph = Σ (hom-Directed-Graph G H) is-emb-hom-Directed-Graph hom-emb-Directed-Graph : emb-Directed-Graph → hom-Directed-Graph G H hom-emb-Directed-Graph = pr1 is-emb-emb-Directed-Graph : (f : emb-Directed-Graph) → is-emb-hom-Directed-Graph (hom-emb-Directed-Graph f) is-emb-emb-Directed-Graph = pr2
External links
- Graph homomorphism on Wikidata
- Graph homomorphism on Wikipedia
Recent changes
- 2025-10-31. Fredrik Bakke. chore: Concepts in graphs (#1646).
- 2024-02-06. Fredrik Bakke. Rename
(co)prodto(co)product(#1017). - 2023-10-13. Egbert Rijke. Fix links to wikidata to the recommended links; add concept tags at end of file for testing purposes (#837).
- 2023-10-12. Egbert Rijke. Creating internal and external links in Graph Theory (#832).
- 2023-05-16. Fredrik Bakke. Swap from
mdtotextcode blocks (#622).