Graph theory

Some terms used in graph theory.

(Thanks to Ganesh sir for introducing and/or reminding me about a lot of this.)


Graph

Tour

Euler cycle

Hamiltonian cycle

Mixed graph

Graph containing a mix of directed and undirected edges.

Hypergraph

A graph with hyperedges. ie, an edge which is connects more than just two vertices.

Undirected graph

Simple graph

Graph satisfying the following conditions:

Multi graph

A non-simple graph.

ie, has a loop or parallel edges.

Adjacent vertices

Vertices linked by an edge.

Walk

Trail

A walk with distinct edges.

Path

A walk with distinct vertices.

Cycle

Connected graph

All vertices linked together by edges. "All vertex pairs are joined by a path". There exists a path between every pair of nodes.

Need not be a complete graph.

Induced subgraph

A type subgraphs.

Line graph

Acyclic graph (Forest)

Graph without any cycles.

Tree

Just a connected acyclic graph.

Rooted tree

Tree with a distinguished root vertex.

Nodes

Vertices of a tree.

Leaves

Nodes of a tree when they are adjacent to only one vertex and are not root.

Directed graphs

Head and tail of an edge

Head
Vertex from which the edge starts.
Tail
Vertex at which the edge ends.

Successor and predecessor vertices in a DAG

If there is a path from a vertex A to another vertex B,

Direct successor/predecessor means the vertices are directly connected. ie, there vertices are directly linked by a single edge. The vertices are then said to be adjacent.

Indegree of a vertex

Number of edges for which the vertex is the head.

Outdegree of a vertex

Number of edges for which the vertex is the tail.

Walk

An alternating sequence of vertices and edges with the same direction.

Directed acyclic graph (DAG)

Represents a partial ordering.

Polar DAG

A DAG with two distinguished vertices: a source and a sink.

Source

All vertices are reachable from the source vertex of the graph.

Sink

Sink vertex is reachable from all vertices of the graph.

Incidence matrix

Rows = vertices Columns = edges

Adjacency matrix

Rows = vertices Columns = vertices

Perfect graphs

Clique of a graph

A complete subgraph.

Maximum clique of a graph

Largest possible clique of a graph.

Clique number of a graph

Cardinality (ie, number of vertices) of the maximum clique of the graph.

Orientation

Orientation of an undirected graph is an assignment of exactly one direction to all edges of that graph.

Graphs with names

Petersen graph

Planar graph

Graph that can be drawn in 2D with no two edges crossing each other.

Examples:

k4 (complete graph with 4 nodes) is planar (biggest planar complete graph??).

               +---------+
N----N         |         |
|\  /|         N----N    |
| \/ |         |   /|    |
| /\ |    ≡    |  / |    |
|/  \|         | /  |    |
N----N         |/   |    |
               N----N----+

A cube can be made into a planar graph.

N-----------N
|\         /|
| \       / |
|  N-----N  |
|  |     |  |
|  |     |  |
|  N-----N  |
| /       \ |
|/         \|
N-----------N

Euler's formula for planar graphs

l3

|F| - |E| + |V| = 2

Minor of a graph

Graph that can be formed by deleting some edges, vertices and 'merging' some vertices if needed.

For example²:

    B       
    |       
D---Z---E   
    |       
    C       

is a minor of

    B
   /|
  / |
 /  |
D---X---Y---E---F
        |  /
        | /
        |/
        C

formed by

Diameter of a graph

Length of largest possible path within graph.

Interesting bits

More

References