Graph Theory

tree

A graph is a set of nodes (often denoted E) and a set of links (connecting them). The points are often also called vertices and nodes, and the lines edges.

Examples

Vocabulary

Node degree (grad)

The amount of connections extending from a node is called it’s degree. Nodes with degree 0 are called isolated nodes.

Theorems

  1. $\sumdeg(v) = 2 \cdot |E|$
  2. The number of nodes with odd degrees is even for any graph

Adjacency List is a list is a list where for every node you keep track of the adjacent nodes. This can also be put into matrices.

Terms

A traversal is a sequence of nodes A path is a traversal without repeating nodes A closed traversal is a traversal where first and last nodes are identical A circuit is a closed traversal without repeating edges A cycle is a closed traversal without repeating nodes A component graph is a graph where all nodes can be reached from any starting point with $n \in \mathbb{N}$ steps A tree is a acyclical component graph (often has one designated root node) A hamilton path is a path that visits all nodes once in a graph An euler path is a path that visits all edges once in a graph

Requirements for Euler Paths

Only odd degree on beginning and end (unless you begin and end in same node). The rest needs to be even for this to be possible.