August 2017
Beginner to intermediate
340 pages
8h 42m
English
To formalize the notion of a graph briefly sketched in the introduction, on a purely mathematical level, a graph G = (V, E) can be described as a pair of vertices V and edges E, as follows:
V = {v1, ..., vn}
E = {e1, ..., em}
We call the element vi in V a vertex and ei in E an edge, where each edge connecting two vertices v1 and v2 is, in fact, just a pair of vertices, that is, ei = (v1, v2). Let's construct a simple graph consisting of five vertices and six edges, as specified by the following graph data:
V ={v1, v2, v3, v4, v5}
E = {e1 = (v1, v2), e2 = (v1, v3), e3 = (v2, v3),
e4 = (v3, v4), e5 = (v4, v1), e6 = (v4, v5)}
This is what the graph will look like:
Read now
Unlock full access