|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This interactive simulation introduces the fundamental concepts of Graph Theory, a branch of discrete mathematics that studies the relationships between objects. Graphs are used extensively in computer science, network analysis, social sciences, biology, and optimization problems. What is a Graph?A graph G = (V, E) consists of:
Graphs model relationships such as: social networks (people connected by friendships), road maps (cities connected by roads), web pages (linked by hyperlinks), and molecular structures (atoms connected by bonds). Graph Types
Graph RepresentationsThere are several ways to represent graphs mathematically and in computer memory:
Laplacian Matrix Properties:
Vertex DegreeThe degree of a vertex is the number of edges connected to it:
Undirected Graph: deg(v) = number of edges incident to v
Directed Graph: • in-degree(v) = number of edges pointing TO v • out-degree(v) = number of edges pointing FROM v Handshaking Lemma: In any undirected graph, the sum of all vertex degrees equals twice the number of edges: Σ deg(v) = 2|E| Special Vertices
Graph IsomorphismTwo graphs G₁ and G₂ are isomorphic if there exists a one-to-one mapping between their vertices that preserves edge connections. In other words, they have the same structure but may look different when drawn.
Quick Check for Isomorphism:
If two graphs are isomorphic, they must have:
Common Graph Structures
The Petersen Graph: One of the most famous graphs in graph theory, often used as a counterexample. Properties:
Applications of Graph Theory
Graph Properties
|
Nodes:
0
Edges:
0
Normal Node
Celebrity (Max Degree)
Selected Node
Hover Node
Click: Add node |
Drag: Move node |
Shift+Drag: Create edge |
Click edge: Edit edge |
Right-click: Delete |
Double-click: Rename node
Usage Instructions
Preset Graph Descriptions
Module Details📊 Representations Module
📈 Centrality Module
🧩 Isomorphism Module
Key Observations to Make
Matrix Color Coding
Mathematical Formulas
Complete Graph Kn:
|E| = n(n-1)/2 deg(v) = n-1 for all v Handshaking Lemma: Σ deg(v) = 2|E| Average Degree: d̄ = 2|E|/|V| Matrix Properties: Adjacency (undirected): A = AT Laplacian: L = D - A Laplacian row sums: Σj L[i][j] = 0 Petersen Graph: |V| = 10, |E| = 15 deg(v) = 3 for all v (3-regular) Diameter = 2, Girth = 5 Algorithm Complexity Reference
When to Use Each Representation
Rule of thumb: If |E| ≈ |V|² (dense), use matrix. If |E| << |V|² (sparse), use list.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||