Dots can be joined by lines.
Dots can be joined by lines.
Some lines go one way. These are called directed edges. They look like small arrows.
Other lines do not have arrows. These are undirected edges. They show a link between two dots.
Some dots have no lines. These are called isolated dots. Other dots can have many lines. They can even have a line that loops back to itself.
Graphs help us see how things work together.
Imagine you are at a party. You want to see who knows whom. You could draw a dot for every person. Then, you draw a line between people who shake hands.
In math, these dots are called vertices. The lines are called edges. This whole picture is called a graph.
Some edges are undirected. This means the link goes both ways. A handshake is a good example. Other edges are directed. These look like arrows.
Graphs can be very special. A complete graph has edges between every single pair of dots. 
J. J. Sylvester first used the word "graph" in 1878. He saw how math could show chemical shapes. Today, graphs help us study many things.
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.
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. 
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.
There are many specific types of graphs to explore. A complete graph is one where every single dot connects to every other dot.
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.
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.
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.
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. 
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.
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.
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.
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.
🖼️ Images & Media (6)
More to explore
✨ What else?
Related topics you might enjoy
🔬 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.