Documentation

Mathlib.Combinatorics.Graph.Maps

Maps between graphs #

This file defines vertex map between graphs Graph α β. Morphisms between graphs will also be defined in this file in the future.

Main definitions #

TODO #

def Graph.map {α : Type u_1} {α' : Type u_2} {β : Type u_4} (f : αα') (G : Graph α β) :
Graph α' β

Map G : Graph α β to a Graph α' β with the same edge set by applying a function f : α → α' to each vertex. Edges between identified vertices become loops.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[simp]
    theorem Graph.vertexSet_map {α : Type u_1} {α' : Type u_2} {β : Type u_4} (f : αα') (G : Graph α β) :
    @[simp]
    theorem Graph.edgeSet_map {α : Type u_1} {α' : Type u_2} {β : Type u_4} (f : αα') (G : Graph α β) :
    theorem Graph.IsLink.map {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G : Graph α β} {u v : α} {e : β} (f : αα') (h : G.IsLink e u v) :
    (map f G).IsLink e (f u) (f v)
    @[simp]
    theorem Graph.map_inc {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G : Graph α β} {e : β} {x : α'} (f : αα') :
    (map f G).Inc e x ∃ (v : α), G.Inc e v x = f v
    theorem Graph.Inc.map {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G : Graph α β} {v : α} {e : β} (f : αα') (h : G.Inc e v) :
    (map f G).Inc e (f v)
    @[simp]
    theorem Graph.map_isLoopAt {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G : Graph α β} {e : β} {x : α'} (f : αα') :
    (map f G).IsLoopAt e x ∃ (u : α) (v : α), G.IsLink e u v f u = x f v = x
    theorem Graph.IsLoopAt.map {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G : Graph α β} {v : α} {e : β} (f : αα') (h : G.IsLoopAt e v) :
    (map f G).IsLoopAt e (f v)
    @[simp]
    theorem Graph.map_adj {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G : Graph α β} {x y : α'} (f : αα') :
    (map f G).Adj x y Relation.Map G.Adj f f x y
    theorem Graph.Adj.map {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G : Graph α β} {u v : α} (f : αα') (h : G.Adj u v) :
    (map f G).Adj (f u) (f v)
    @[simp]
    theorem Graph.map_id {α : Type u_1} {β : Type u_4} {G : Graph α β} :
    map id G = G
    @[simp]
    theorem Graph.map_map {α : Type u_1} {α' : Type u_2} {α'' : Type u_3} {β : Type u_4} {G : Graph α β} (f : αα') (f' : α'α'') :
    map f' (map f G) = map (f' f) G
    theorem Graph.IsSubgraph.map {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G H : Graph α β} (f : αα') (h : G H) :
    map f G map f H
    theorem Graph.map_mono {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G H : Graph α β} (f : αα') (h : G H) :
    map f G map f H

    Alias of Graph.IsSubgraph.map.

    theorem Graph.IsSpanningSubgraph.map {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G H : Graph α β} (f : αα') (hsle : G ≤s H) :
    map f G ≤s map f H
    theorem Graph.map_eq_of_eqOn {α : Type u_1} {α' : Type u_2} {β : Type u_4} {G : Graph α β} {f g : αα'} (h : Set.EqOn f g G.vertexSet) :
    map f G = map g G