Nepedia
Back to Discover
Fluent Reader
🔢

Graph (discrete mathematics)

math Maturity 7-9 Next article →

Imagine you want to map out how things connect. You might draw dots to represent objects and lines to show their relationships. In mathematics, this special structure is called a graph.

6n-graf
6n-graf

The dots are known as vertices, or sometimes nodes. The lines connecting them are called edges, links, or lines. A graph can tell a story about how many items are in a group. The number of vertices is called the order of the graph. The number of edges is called the size of the graph.

Undirected
Undirected

Graphs work in different ways depending on the connections. Some graphs are undirected, meaning the relationship goes both ways. A handshake is a good example because both people participate at once. Other graphs are directed, which use arrows to show a specific direction.

Undirected
Undirected

In a directed graph, an edge might go from person A to person B. This is useful if person A owes money to person B. You might also see a mixed graph. This uses both regular lines and arrows in the same picture.

Example of simple mixed graph
Example of simple mixed graph

Mathematicians have studied these patterns for a long time. The word "graph" was first used in this way by J. J. Sylvester. He used the term in 1878.

6n-graf
6n-graf

Sylvester saw a link between math and the way chemicals are shaped. He thought of these diagrams as a way to show chemical structures. His work helped connect algebra to the physical world. This helped start the study of graph theory.

There are many specific types of graphs to explore. A complete graph is one where every single dot connects to every other dot.

Complete graph K5
Complete graph K5

A regular graph is one where every vertex has the exact same number of neighbors. Some graphs are also weighted.

Weighted network
Weighted network

In a weighted graph, each edge is given a number. This number might represent a cost or a distance. You can also have a path graph, which looks like a simple line of dots. Some graphs are even called trees if they follow certain rules.

Graphs help us understand the world around us. They are used to find the shortest path between two places. They can show how many people are connected in a large network. You can use them to study how computers share information. Even simple shapes like a cycle graph show us patterns.

Undirected
Undirected

By using vertices and edges, math turns messy connections into clear pictures. This makes hard problems much easier to solve.

400 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.