Definition
A (simple) graph is defined as a set of vertices
We can represent graphs as Matrices
Properties
Explanations
- Start with a finite graph with no edges so
- 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.
- Start with a finite graph with no edges so
- Given a finite graph any vertex can be connected to at most all other vertices.
- 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
is Bijective
Subgraphs
A subgraph of
Graph Traversals
A Walk is a route through a graph along the edges from one vertex to the next.
A Path (denoted as
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
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
- Any region must be bound by at least edges - a triangle
- But each edge contributes to 2 regions hence we divide by 2.
- By Euler’s Formula for
- 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
- For a graph with 1 vertices it clearly holds.
- 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. - 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.
- 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
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.