Types of Graphs

5 min read Updated Tue Apr 28 2026 07:56:31 GMT+0000 (Coordinated Universal Time)

Simple Graph

A graph with no loops and no multiple edges between the same pair of vertices.

Pseudograph

Aka. multi-graph. Consists of a set of vertices (aka. nodes or points) and some pair of vertices are connected by edges (aka. line segments).

The set of vertices is usually denoted by VV. The set of edges is denoted by EE. The pseudograph GG is denoted as G=(V,E)G = (V, E).

Regular Graph

A graph where all vertices have the same degree (rr). Aka. rr-regular graph.

Null Graph

A graph with no edges. All vertices are isolated.

Directed Graph

Aka. digraph. Edges have direction.

G=(V,E)G=(V,E) where EE is a set of ordered pairs of vertices. Edges of a directed graph are called arcs or directed edges or arrows or directed lines.

Starting vertex (where the arrow starts from) is called the tail, ending vertex (where the arrow points to) is called the head. Vertices have in-degree (denoted as indeg(v)\text{indeg}(v)) and out-degree (denoted as outdeg(v)\text{outdeg}(v)) which means the number of incoming and outgoing edges respectively. Loops contribute 1 to both in-degree and out-degree.

deg(v)=indeg(v)+outdeg(v)\text{deg}(v) = \text{indeg}(v) + \text{outdeg}(v)

Simple and multi digraph versions exist.

Complete Graph

A simple graph where every pair of vertices is adjacent. Denoted by KnK_n where nn is the number of vertices.

Contains n(n1)2\frac{n(n-1)}{2} number of edges, which is the maximum for a simple graph with nn vertices.

Bipartite Graph

A graph whose vertices can be split into disjoint sets V1V_1 and V2V₂ such that:

  • All edges go between V1V_1 and V2V_2,
  • No edges exist inside V1V_1 or inside V2V_2.

Here V1V_1 and V2V_2 are called bipartition sets.

Complete Bipartite Graph

Every vertex in V1V_1 is connected to every vertex in V2V_2. Denoted by Km,nK_{m,n}.

Self-Complementary Graph

A graph satisfying G=GcG = G^c.

If, GG is self-complementary, GG has n(n1)4\frac{n(n-1)}{4} edges.

Cyclic Graph

A graph with at least 1 cycle.

A simple graph consisting of only a cycle with nn vertices, is called nn-cyclic graph and denoted as CnC_n.

C2C_2 is only possible as a multi-graph. Otherwise it will be a open path and not a cycle.

Acyclic Graph

A graph with no cycles.

Euler Graph

Aka. Eulerian graph. A connected graph that contains an Eulerian circuit.

A graph is Eulerian iff every vertex has an even degree. Whenever a walk enters a vertex, it must leave via another edge. Thus edges are used in pairs, making the vertex degree even.

G  is Eulerian    vV(G),  deg(v)0mod2G\;\text{is Eulerian} \iff \forall v \in V(G),\;\text{deg}(v) \equiv 0 \mod 2

Examples:

  • C2C_2 (2 vertices connected by 2 parallel edges)
    The smallest Eulerian multi graph.
  • C3C_3 (triangle)
    The smallest Eulerian simple graph.

Hamiltonian Graph

A graph that contains a Hamiltonian cycle. Introduced by William Hamilton in 1857, while studying cycles in the dodecahedron graph.

Dirac’s Theorem

A simple graph with n(3)n (\ge 3) vertices is Hamiltonian if every vertex has degree at least n/2n/2.

v  deg(v)n2\forall v\;\text{deg}(v) \ge \frac{n}{2}

Ore’s Theorem

A simple graph with n3n \ge 3 vertices is Hamiltonian if for every pair of non-adjacent vertices uu and vv:

deg(u)+deg(v)n\text{deg}(u) + \text{deg}(v) \ge n

Weighted Graph

A graph in which each edge is assigned a numerical value (aka. weight). 3-tuples, where the third element is a weight function, w:ERw: E \to \mathbb{R}.

Weights often represent distance, cost, time, or capacity. Used in road networks, computer network routing, project scheduling, etc.

Planar Graphs

A graph that can be drawn on a plane without any edges crossing.

A drawing of the graph without edge crossings is called a planar representation or planar embedding. A graph can have multiple planar representations.

Euler’s Formula for Planar Graphs

For a connected planar graph:

ve+f=2v - e + f = 2

Here:

  • vv – number of vertices
  • ee – number of edges
  • ff – number of regions (faces), including the outer region.

Corollary of Euler’s Formula

For a connected planar simple graph with v3v \ge 3, the graph must satisfy e3v6e \le 3v - 6.

If a graph violates this inequality, it cannot be planar.

Non-Planar Graph

Certain graphs cannot be drawn without edge crossings.

Examples:

  • K5K_5
    Complete graph with 5 vertices. Does not satisfy the corollary of Euler’s formula for planar graphs, thus non-planar.
  • K3,3K_{3,3}
    Complete bipartite graph with partitions of size 3. Satisfies the corollary of Euler’s formula, but is still non-planar. It can be shown that it contains a subgraph homeomorphic to K5K_5.

These are the smallest non-planar graphs.

Kuratowski’s Theorem

A graph is non-planar iff it contains a subgraph homeomorphic to K5K_5 or K3,3K_{3,3}.