To be honest i really don't know where to start or what should I. The problem states, "Given the vertex pairs associated to the edges of an undirected graph, find the degree of each vertex." I.e. (A square has 4 vertex then the degree of each vertex is 2.)

It should be working in a turbo c code. So if any one can help with making with this code or helping me in what should i do. Thanks. Much appreciated.