5. Decision Mathematics

Graphs And Networks

Basic graph theory, paths, cycles, connectivity, Eulerian and Hamiltonian concepts and practical network representations.

Graphs and Networks

Hey students! 👋 Welcome to one of the most fascinating areas of mathematics - graph theory! In this lesson, you'll discover how mathematicians use simple dots and lines to solve complex real-world problems, from finding the shortest route on Google Maps to designing efficient computer networks. By the end of this lesson, you'll understand the fundamental concepts of graphs, including vertices, edges, paths, cycles, and connectivity, plus you'll learn about special types of graphs called Eulerian and Hamiltonian graphs that have amazing practical applications.

What Are Graphs and Networks?

Let's start with the basics, students! In mathematics, a graph is simply a collection of points (called vertices or nodes) connected by lines (called edges). Don't confuse this with the graphs you draw in coordinate geometry - these are completely different! 📊

Think of it like this: imagine you're looking at a map of your city's bus routes. The bus stops are vertices, and the routes connecting them are edges. That's essentially what a mathematical graph represents!

A graph is formally defined as a pair G = (V, E), where:

  • V is a set of vertices (the dots)
  • E is a set of edges (the lines connecting the dots)

For example, if you have vertices {A, B, C, D} and edges {AB, BC, CD, DA}, you've created a square-shaped graph!

Real-world applications are everywhere, students. Social media platforms like Facebook use graphs where people are vertices and friendships are edges. The internet itself is a massive graph where websites are vertices and hyperlinks are edges. Even your brain's neural network follows graph theory principles!

Here's a fun fact: Facebook discovered that any two people on their platform are connected by an average of just 3.57 degrees of separation - that's the power of graph connectivity in action! 🌐

Paths and Cycles: Following the Trail

Now, let's talk about paths and cycles, students. These concepts help us understand how to navigate through graphs.

A path in a graph is a sequence of vertices where each adjacent pair is connected by an edge, and no vertex is repeated. Think of it as taking a walk through the graph without visiting the same place twice. For instance, in a graph with vertices A, B, C, D, a path might be A → B → C → D.

The length of a path is the number of edges it contains. So our path A → B → C → D has length 3.

A cycle is a special type of path that starts and ends at the same vertex, with no other vertex repeated. It's like taking a round trip! The shortest possible cycle has length 3 (a triangle).

Connectivity is crucial in graph theory. A graph is connected if there's a path between every pair of vertices. If you can't reach some vertices from others, the graph is disconnected and breaks into separate components.

In real life, students, path concepts are vital for GPS navigation systems. When your phone calculates the fastest route to school, it's essentially finding the shortest path in a graph where intersections are vertices and roads are edges. The algorithm considers factors like traffic (edge weights) to find optimal paths! 🗺️

Eulerian Graphs: The Königsberg Bridge Problem

Here's where graph theory gets really exciting, students! Eulerian graphs are named after the famous mathematician Leonhard Euler, who solved the legendary Königsberg Bridge Problem in 1736.

The problem was simple: the city of Königsberg (now Kaliningrad) had seven bridges connecting four land areas. People wondered if it was possible to walk through the city, crossing each bridge exactly once, and return to the starting point.

Euler transformed this into a graph theory problem! He represented the land areas as vertices and bridges as edges. He discovered that such a walk (called an Eulerian circuit) exists if and only if every vertex has an even degree (an even number of edges connected to it).

An Eulerian path (not necessarily returning to start) exists when exactly two vertices have odd degree, and all vertices with nonzero degree are connected.

Modern applications include:

  • Snow plow routing: Cities use Eulerian concepts to plan efficient snow removal routes 🚛
  • Mail delivery: Postal services optimize routes to visit every street exactly once
  • Circuit board design: Engineers design paths that trace every connection without repetition

The Königsberg bridges had vertices with odd degrees, so Euler proved the walk was impossible - solving a puzzle that had stumped people for decades!

Hamiltonian Graphs: Visiting Every City Once

Hamiltonian graphs present a different challenge, students. Named after Irish mathematician William Hamilton, these involve finding a path or cycle that visits every vertex exactly once (rather than every edge like Eulerian graphs).

A Hamiltonian path visits every vertex exactly once. A Hamiltonian cycle does the same but returns to the starting vertex, forming a closed loop.

Unlike Eulerian graphs, there's no simple test to determine if a graph has a Hamiltonian path or cycle. This makes it much more challenging computationally!

The Traveling Salesman Problem (TSP) is perhaps the most famous application. Imagine you're a salesperson who needs to visit customers in different cities exactly once and return home, minimizing total travel distance. This is finding the shortest Hamiltonian cycle! 🧳

Real-world TSP applications include:

  • Delivery services: UPS and FedEx use TSP algorithms to optimize delivery routes, saving millions of dollars annually
  • Manufacturing: Drilling circuit boards efficiently by minimizing the distance between holes
  • DNA sequencing: Biologists use Hamiltonian concepts to reconstruct genetic sequences

Here's an amazing fact: FedEx saves approximately $100 million per year using graph theory algorithms to optimize their delivery networks!

Network Representations and Practical Applications

Modern networks are everywhere, students, and they're all based on graph theory principles! Let's explore how these abstract mathematical concepts translate into technologies you use daily.

Computer networks represent devices as vertices and connections as edges. The internet's structure follows graph theory, with routers and servers as vertices and data links as edges. When you stream a video, graph algorithms find the most efficient path for data to travel from the server to your device.

Social networks create fascinating graph structures. In these networks:

  • Vertices represent people
  • Edges represent relationships (friendships, follows, etc.)
  • Clustering coefficient measures how interconnected your friends are
  • Centrality measures influence within the network

Transportation networks rely heavily on graph theory. London's Underground system is a perfect example - stations are vertices, and rail lines are edges. The famous tube map is actually a simplified graph representation that prioritizes connectivity over geographical accuracy! 🚇

Biological networks include:

  • Food webs: Species as vertices, predator-prey relationships as edges
  • Neural networks: Neurons as vertices, synapses as edges
  • Protein interaction networks: Proteins as vertices, interactions as edges

A fascinating statistic: The human brain contains approximately 86 billion neurons (vertices) with about 100 trillion synaptic connections (edges) - making it one of the most complex graphs in the known universe!

Conclusion

Congratulations, students! You've just explored the fundamental concepts of graph theory and networks. We've covered how graphs consist of vertices and edges, learned about paths and cycles that help us navigate these structures, and discovered Eulerian graphs (focusing on edges) and Hamiltonian graphs (focusing on vertices). You've also seen how these mathematical concepts power everything from GPS navigation to social media algorithms. Graph theory truly bridges abstract mathematics with practical problem-solving, making it one of the most applicable areas of mathematics in our digital world. The next time you use Google Maps or scroll through social media, remember - you're experiencing graph theory in action! 🎯

Study Notes

• Graph: A pair G = (V, E) where V is a set of vertices and E is a set of edges

• Vertex (Node): A point in a graph representing an object or location

• Edge: A line connecting two vertices, representing a relationship or connection

• Path: A sequence of vertices connected by edges with no repeated vertices

• Cycle: A path that starts and ends at the same vertex with no other repeated vertices

• Connected Graph: A graph where there exists a path between every pair of vertices

• Degree of a vertex: The number of edges connected to that vertex

• Eulerian Path: A path that uses every edge exactly once

• Eulerian Circuit: An Eulerian path that returns to the starting vertex

• Eulerian Graph Condition: A connected graph has an Eulerian circuit if and only if every vertex has even degree

• Hamiltonian Path: A path that visits every vertex exactly once

• Hamiltonian Cycle: A Hamiltonian path that returns to the starting vertex

• Traveling Salesman Problem: Finding the shortest Hamiltonian cycle in a weighted graph

• Connectivity: Measure of how well-connected a graph is

• Network: A graph used to model real-world systems like computer networks, social networks, or transportation systems

Practice Quiz

5 questions to test your understanding