Nepedia
Back to Discover
Fluent Reader
🔢

Graph homomorphism

math Maturity 11-13 Next article →

A graph homomorphism is a special way to map one graph to another. In math, a graph is a collection of dots called vertices and lines called edges. A homomorphism is a function that connects the dots of one graph to the dots of another. It must follow a very important rule to respect the original structure. If two dots are connected by a line in the first graph, their new dots must also be connected by a line in the second graph.

Graph homomorphism into C5
Graph homomorphism into C5

This rule ensures the mapping preserves the way the dots relate to each other.

This idea is closely linked to the way we color shapes. Imagine you have a graph and you want to give every dot a color. You must follow a rule where no two dots connected by a line have the same color. This is called a k-coloring if you use k different colors. Finding a k-coloring is actually the same thing as finding a homomorphism to a special graph called Kk. In this special graph, every dot is connected to every other dot.

Groetzsch-graph
Groetzsch-graph

Because all dots are connected, the mapping forces adjacent dots in your original graph to take different colors.

Some graphs have a very sturdy and simple heart called a core. A core is a graph that cannot be mapped into any smaller part of itself. Every single graph has its own unique core. You can think of the core as the most basic version of that graph's shape. For example, a complete graph like K7 is a core.

Complete graph K7
Complete graph K7

Another example is any cycle graph with an odd number of dots. If two graphs can map to each other, they are called homomorphically equivalent.

We can also use these mappings to solve tricky real-world puzzles. One example is making a school schedule for workshop courses. You can make a graph where each dot is a course. You draw a line between courses if a student takes both. Then, you map these to a second graph representing time slots. The second graph only has lines between slots that are far enough apart.

Graph of non-adjacent weekdays
Graph of non-adjacent weekdays

This ensures no student has two classes too close together in time.

Another use is helping wireless networks pick the right frequencies. Transmitters need to choose channels so they do not interfere with each other. You can make a graph of transmitters where lines connect those that are close together. Then, you map them to a graph of channels where lines connect frequencies that are far apart. This helps avoid signal interference. Finding these mappings can be a very hard job for computers. However, scientists study special cases to find faster ways to solve them.

449 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:Graph homomorphism into C5.svg
Graph homomorphism into C5.svg
File:Complete graph K7.svg
Complete graph K7.svg
File:Graph of non-adjacent weekdays.svg
Graph of non-adjacent weekdays.svg
File:Groetzsch-graph.svg
Groetzsch-graph.svg
More to explore

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.