Graph theory was first introduced in the 18th century by Leonhard Euler to solve a famous problem known as the Königsberg bridge problem, which asks whether it is possible to walk around the Königsberg bridge while crossing over each of the seven bridges exactly once. The bridge looks as follows:
Before we move on, try it out for yourself by using your finger to trace along the path or draw it and trace it with a pencil. Did you manage to find a solution? It's alright if you didn't!
Let's stop for a moment and ask ourselves what exactly a graph is. A graph (G) is a mathematical structure made ...