Graph Algorithms are a sequence of well-defined steps that will solve a problem related to Graph Theory, where a Graph in this context is a collection of vertices ("nodes") and edges that connect these vertices.
What are Graphs? And what are Graph Algorithms?
Graph Theory is the study of mathematical structures that model objects and the relations between objects. These structures, known as graphs, are collections of vertices, or nodes, and edges which join them together.
There are many variations on graph structures and properties:
- some have weighted edges (weighted graphs)
- some have directed edges (directed graphs)
- some have no cycles in their paths (acyclic graphs)
- some have a very dense or sparse amount of edges
- some are a combination of some or all of this properties/structures.
A Graph Algorithm is a sequence of well-defined steps that solve a problem regarding these mathematical structures, such as: