- Graphs in graph theory are a powerful way to model connections in real life, such as rail routes, social interactions, or metro maps.
- In this topic you will learn the main network types used in extended mathematics and how to recognize what each type can (and cannot) represent.
Network
A set of objects (called nodes or vertices) that are connected together.
Graphs Model Connections Using Vertices And Edges
- A graph (in graph theory) is made of vertices (points) and edges (connections between points).
- This is a different meaning from the word "graph" used for plots on coordinate axes, so you must be careful with terminology.
- Vertices are also commonly called nodes, and edges are also called arcs.
Order (Degree) Describes How Connected A Vertex Is
- The order of a vertex (also called its degree) is the number of edges connected to it.
- This is one of the simplest but most useful measurements in network problems:
- a high-order vertex may represent a major hub station in a metro system,
- a low-order vertex may represent an isolated location with few direct links.
- In a rail-connection graph, a city connected directly to many other cities has a vertex of high order.
- A city connected to only one other city has order 1.
- Students often confuse order of a vertex with "importance" in a real-world sense.
- A hub (high degree) might still be a poor choice in a journey if the connections are slow, expensive, or infrequent.
- Degree measures number of direct links only.
Undirected Graphs Model Two-Way Relationships
- In an undirected graph, an edge means the relationship works both ways.
- This is appropriate when travel or connection is symmetric, for example:
- two people who can communicate (they share at least one common language),
- two stations joined by track that trains run in both directions,
- two computers connected by a cable where data can flow either way.
Undirected graph
A graph where edges have no direction, so if vertex $A$ is connected to vertex $B$, then $B$ is also connected to $A$.
Connected And Disconnected Graphs Describe Reachability
- A key property of an undirected graph is whether it is connected.
- If a graph is not connected, it is disconnected, meaning it has at least two separate parts (components) with no path between them.
Connected graph
A graph where every vertex can be reached from every other vertex by traveling along edges (possibly using several edges).
- A metro system would usually be represented by a connected graph: from any station you should be able to reach any other station using some sequence of lines.
- If the metro graph is disconnected, then there are stations or whole lines that are completely isolated from the rest.
In real metro maps, a disconnected network could exist temporarily due to construction, closures, or a separate "shuttle" line that is not physically linked to the main system.
Complete Graphs Represent "Everyone Connects To Everyone"
Some networks are maximally connected.
Complete graph
A graph where every pair of distinct vertices is joined by an edge.
Complete graphs are useful as idealized models (for example, if every city has a direct flight to every other city), but they become unrealistic quickly as the number of vertices grows.
In a complete graph with $n$ vertices, every vertex has order $n-1$.
Directed Graphs Model One-Way Connections
- Sometimes the relationship is not symmetric.
- Then we use a directed graph.
Directed graph
A collection of vertices (nodes) connected by edges (links) that have a specific direction.
Directed graphs are appropriate for:
- one-way streets,
- online "following" (A follows B does not imply B follows A),
- processes with a fixed direction (task A must happen before task B).
In-Degree And Out-Degree Extend The Idea Of Order
- For directed graphs, we often separate "order" into:
- out-degree: number of arrows leaving a vertex,
- in-degree: number of arrows entering a vertex.
- This helps answer questions like: which page has the most links pointing to it, or which station has the most one-way exits?
- A directed graph can be "connected" in more than one sense.
- In many school-level problems, "connected" is discussed for undirected graphs.
- For directed graphs, always check what type of reachability is intended (following arrow directions or ignoring them).
Weighted Graphs Are Networks Used For Optimization
- Knowing that two places are connected is useful, but it is often not enough to make decisions.
- If you want to choose a best route, you need information about the connections.
- A network is a weighted graph, meaning each edge has a value (a weight) attached.
Weighted Graph
A **weighted graph** is a graph in which every edge has an associated number (a weight), representing something like distance, time, cost, or risk.
Why Weight Matters: Two Routes Can Use The Same Number Of Edges But Differ Greatly
- In an unweighted graph, two paths might look equally good if they use the same number of edges.
- In reality, one route may be much quicker or cheaper.
- For example, if you can travel from Derby to Liverpool with one change via Birmingham or via Crewe, the unweighted graph only tells you both are possible.
- A network, with edge weights for time, distance, or cost, would let you decide which route is better.
If weights represent time (minutes), the "best" path is usually the one with the smallest total weight (sum of weights along the path), not necessarily the one with the fewest edges.
- When a question gives weights, always state what they represent (distance, time, cost).
- Then, when comparing routes, show the total weight for each route clearly before choosing the minimum.
Bipartite Graphs Model Relationships Between Two Different Sets
Some graphs naturally split into two groups, where edges only go between groups, not within a group.
Bipartite Graph
A **bipartite graph** is a graph whose vertices can be divided into two sets so that every edge connects a vertex in one set to a vertex in the other set.
- A classic example is a "people and languages" graph:
- one set of vertices represents people,
- the other set represents languages,
- an edge means "this person speaks this language".
- In such a graph, the order of a person-vertex represents how many languages they speak, and the order of a language-vertex represents how many people speak it.
- If a person-vertex has order 3, that person speaks 3 languages.
- If a language-vertex has order 4, that language is spoken by 4 people.
Projecting A Bipartite Graph Creates A "Shared Feature" Network
- Sometimes you want a graph that shows connections only among people.
- From a people-and-languages bipartite graph, you can make a new graph:
- vertices are people,
- connect two people if they share at least one language.
- This new graph is often more useful for answering questions about who can communicate with whom, but it also loses information (you no longer see which language creates the connection).
Real Network Diagrams Often Break Pure Graph Rules For Communication
- Metro maps are a great example of graphs in real life: stations are vertices and adjacent stations are connected by edges.
- However, metro maps also need to communicate extra information that a simple graph does not, such as:
- line colors (which service you are on),
- station names and transfer points,
- geographic cues (rough direction, landmarks),
- accessibility information or zone boundaries.
- Because of these needs, a metro map may not look like a "clean" graph drawing.
- For instance, tracks may be drawn to avoid clutter or to emphasize clarity rather than accurate distances.
- A graph is about connections, not about exact geometry.
- Two drawings can represent the same graph even if the vertices are placed differently, as long as the same vertices are connected by the same edges.
- What is the difference between an edge and a weight?
- In a people-and-languages graph, what does the order of a language-vertex mean?
- Give one real situation better modeled by a directed graph than an undirected graph.
- Explain one reason a metro map drawing might not follow the "usual" appearance of a graph.