See Graph theory
A graph ggg, consists of a set of vertices VVV, and a set of edges E∈V×VE \in V \times V E∈V×V.