Description:

  • From Seven Bridges of Königsberg
  • a graph consists of , a non-empty set of vertices and , a set of edges
  • Finite vs infinite graph:
    • A graph is called finite if both and are finite; otherwise, it is infinite.
  • Has Paths

Types:

ТуреEdgesMultiple Edges Allowed?Loops Allowed?
Simple graphUndirectedNoNo
MultigraphUndirectedYesNo
PseudographUndirectedYesYes
Simple directed graphDirectedNoNo
Directed multigraphDirectedYesNo
Mixed graphDirected and undirectedYesYes

Graph representation

Graph isomorphism

Graph connectivity:

  • An Undirected graph is connected if there exists a path between any two nodes
    • note that a graph containing a single node is considered connected via the length 0 path
    • An undirected graph that is not connected is called disconnected
  • There is a simple path between every pair of distinct vertices of a connected undirected graphtheorem
  • A Directed graph is a strongly connected if there exists a path form any node to any node (so is from the node to node )
  • A Directed graph is a weakly connected if there is a path between every 2 vertices in the underlying Undirected graph
  • A simple cycle of a particular length is a useful invariant that can be used to show that two graphs are not isomorphic.

Counting paths between vertices:

  • Let 𝐺 be a graph with adjacency matrix 𝑨 with respect to the ordering of the vertices of the graph (with directed or undirected edges, with multiple edges and loops allowed).
  • The number of different paths of length from to , where is a positive integer, equals the th entry of theorem
    • the matrix power to r, then we have the number of possible ways of going from one node to the other

Subgraph:

  • Given a graph , a subgraph of is simply a graph with and .
    • We denote by
  • A connected component of graph 𝐺 = (𝑉, 𝐸) is a maximal connected subgraph; that is, it is a subgraph 𝐻 ⊆ 𝐺 that is connected, and any larger subgraph 𝐻’ (satisfying 𝐻’ ≠ 𝐻, 𝐻 ⊆ 𝐻’ ⊆ 𝐺) must be disconnected.
  • We may similarly define a strongly connected component of a directed graph as a maximal strongly connected subgraph???

Application:

Minimum Spanning Tree

Graph Cutset

Shortest path: