Open In App

Observations on graph

A Graph is a non-linear data structure used for the representation of a set of objects where some pairs of objects are connected. The interconnected objects are represented by points called vertices, and the line that connects the vertices are called edges. Vertices are represented by V and edges are represented by E. It can also be said that a graph is a pair of sets (V, E). For Example:



In the above Graph, the set of vertices V = {0, 1, 2, 3} and the set of edges E = {(0, 1), (0, 3), (1, 2), (1, 3), (2, 3)}.

Some observations of a graph are:



The total number of edges are: 1 + 2 + 3 + ··· + N = N*(N – 1)/2 edges

The total number of edges are: N*(N – 1)

The total number of edges are: N*N

The total number of edges are: (N – 1)

Now, if there are N different choices on the first row, there are (N – 1) choices on the second row (as information about the edges 1, 2 is known), and so on. So the total possibilities are:

N*(N – 1)*(N – 2)* … *1 = N!

Or it can be said that it is equal to the number of permutations of N elements i.e., N!.

For N ≤ 1, there are precisely NN – 2 tree graphs on N-la belled vertices.

Article Tags :