Combinatorics

Definition

A (simple) graph is defined as a set of vertices and a set of edges which connect two vertices (undirected). And edge is written as , sometimes written as , where . Graphs must have no loops and two vertices can only be connected by a single edge. A finite graph is a graph with a finite number of vertices. The degree (also called order) denoted as of a vertex is the number of edges incident to it - the number of edges connect to it. A network is a graph with weights to describe flows, times, or distances.

We can represent graphs as Matrices . If are connectected then then if not it is equal to . If the graph is a digraph then you can consider direction by only having with .


Properties

Explanations

    1. Start with a finite graph with no edges so
    2. Adding any edge has to connect two vertices and it will increase the order of each of those vertices by one increasing the sum by 2.
    1. Given a finite graph any vertex can be connected to at most all other vertices.
    2. For a graph with vertices, for all vertices , there are at most edges it can be connected so

Isomorphism

2 (simple) graphs are isomorphic if they have the same structure e.g. same number of vertices connected in the same way. Rigorously two graphs are isomorphic if there exists a function called a graph isomorphism that satisfy the following properties

  1. is Bijective

Subgraphs

A subgraph of is a graph each of whose vertices and edges belongs to .


Graph Traversals

A Walk is a route through a graph along the edges from one vertex to the next. A Path (denoted as ) is a walk where no vertex is visited more than once. A Trail is a walk in which no edge is visited more than once. A Cycle (denoted as ) is a walk in which the end vertex is the same as the start vertex but no other vertex is repeated more than once. (Basically a path that starts and ends at the same place, but strictly it is not a path as the star/end vertex is visited twice.) A Hamiltonian Cycle is a cycle that includes every vertex in a graph.


Connection

Two vertices are connected if there exists a path between them. A graph is connected if every vertex is connected. If it is not connected it is disconnected.


Complete Graph

A Complete Graph (denoted as ) is a graph in where every vertex is connected to every other vertex by an edge. It has edges.


Planar

A graph is planar if it is isomorphic to a graph that can be drawn on a plane with no edges meeting/crossing over other than at the vertices.

Euler’s Formula

For a connected planar graph the following holds

Faces are regions in the graph.

Proof

  1. Any region must be bound by at least edges - a triangle
  2. But each edge contributes to 2 regions hence we divide by 2.

are planar but are not planar. Proof

  1. By Euler’s Formula for
  2. But contradiction hence and are not planar.

Any 3D polyhedra can be represented as a connected planar graph so this holds for 3D polyhedra. Proof by induction

  1. For a graph with 1 vertices it clearly holds.
  2. For any planar connected graph there if you add an edge without adding a vertex. You have to add a region. This increases the edges and faces by 1 and cancels.
  3. For any planar connected graph if you add an edge by adding a new vertex. You can’t create a new region. So vertices have increased by 1 and so has edges keeping the sum the same.
  4. Those are the only two ways to add an edge to a connected planar graph.

Tree

A tree is a connected graph which contains no cycles. A spanning tree of a graph is a subgraph which contains all the vertices in and is also a tree.

Bi-Partite Graph

A Bi-Partite graph is a graph where the vertices can be split into 2 sets so that vertices in each set are not connected to any vertices in the same set.