Graphs
Learn some definitions and terminologies related to graphs.
A graph and its constituent parts
Imagine some dots. Let’s give these dots a name—vertices. Now imagine some lines, each connecting one dot to another. Let’s call these edges. This structure we just built in our mind is an example of what we want to conceive as a graph.
Press + to interact
Of course, we want a more precise definition, so we know exactly what constitutes a graph and what doesn’t.
A graph consists of a non-empty set , whose elements are called vertices, and a set , whose elements are called edges, such that each edge is associated with one or two vertices called its end-vertices.
We use the notation to highlight that is the vertex set and ...