Let V be a non-empty set, and E be any set of ordered pairs over V. The pair (V, E) is called a graph. We denote a graph by G = (V, E). V is called the vertex set of G and its elements as vertices, while E is called the edge set of G and its elements as edges.