Nepedia
Back to Discover
Advanced Reader
🔢

Graph (discrete mathematics)

math Maturity 7-9 Next article →

In discrete mathematics, a graph is a formal structure used to model relationships between objects. It consists of a set of objects called vertices, which are also known as nodes or points. The relationships between these objects are represented by edges, which are often called links or lines.

6n-graf
6n-graf

By using these abstractions, mathematicians can study the patterns of connectivity without needing to know the specific nature of the objects themselves. This makes graph theory a powerful tool for analyzing everything from social networks to chemical structures.

To understand how a graph functions, we must look at its fundamental properties. The order of a graph refers to the total number of vertices in the set. The size of a graph refers to the total number of edges.

Undirected
Undirected

We also measure the degree, or valency, of a vertex, which is the number of edges connected to it. If an edge connects a vertex to itself, it is called a loop and counts twice toward the degree. When two vertices are connected by an edge, they are said to be adjacent. If a vertex has no edges connected to it, it is called an isolated vertex.

Graphs are categorized by how their edges behave. An undirected graph uses simple lines where the relationship is mutual, such as a handshake between two people.

Undirected
Undirected

In contrast, a directed graph, or digraph, uses edges with specific orientations, often drawn as arrows. In these cases, an edge has a tail and a head, indicating a one-way relationship like owing money.

Undirected
Undirected

Some systems require both types of connections, which are known as mixed graphs.

Example of simple mixed graph
Example of simple mixed graph

Furthermore, a multigraph allows multiple edges to exist between the same two vertices, while a simple graph does not.

The history of the term "graph" in this mathematical sense dates back to 1878. It was first used by the mathematician J. J. Sylvester. Sylvester noticed a direct relationship between mathematical invariants and chemical structures.

6n-graf
6n-graf

He drew connections between algebra and the way atoms are arranged in molecules, which he called chemico-graphical images. This insight helped bridge the gap between abstract mathematics and the physical science of chemistry. His work provided an early foundation for what we now call graph theory.

Mathematical graphs can be assigned specific values to add more detail. A weighted graph, or a network, assigns a numerical value, called a weight, to each edge.

Weighted network
Weighted network

These weights can represent many different real-world measurements, such as the distance between cities, the cost of a flight, or the capacity of a pipe. Using these numbers allows mathematicians to solve complex problems, such as finding the shortest path through a network. This is a central concept in many computational algorithms used today.

There are many specialized types of graphs that mathematicians study. A complete graph is a structure where every single vertex is joined to every other vertex by an edge.

Complete graph K5
Complete graph K5

A regular graph is one where every vertex has the exact same degree, meaning every point has the same number of neighbors. We also study bipartite graphs, where vertices are split into two groups that do not connect within themselves. Some graphs are even described as planar if they can be drawn on a flat surface without any edges crossing each other.

Connectivity is another vital concept in graph theory. In an undirected graph, a graph is considered connected if a path exists between every pair of vertices.

Undirected
Undirected

In directed graphs, the rules are more complex. A graph is strongly connected if there is a directed path from every vertex to every other vertex. If the connections only work when you ignore the direction of the arrows, the graph is called weakly connected. These distinctions help scientists understand how information or energy flows through a system. By studying these various structures, we gain a deeper understanding of the interconnected world around us.

641 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (6)
File:6n-graf.svg
6n-graf.svg
File:Undirected.svg
Undirected.svg
File:Directed.svg
Directed.svg
File:Example of simple mixed graph.jpg
Example of simple mixed graph.jpg
File:Weighted_network.svg
Weighted_network.svg
File:Complete graph K5.svg
Complete graph K5.svg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.