GeeksforGeeks » Interview Questions

Adobe Interview Question for Software Engineer/Developer

(3 posts)

Tags:

  1. greek
    guest
    Posted 1 year ago #

    Prove that in a graph, sum of degrees = twice the number of edges.

    given that, also deduce a relation between number of vertices and number of edges.

  2. Venki
    Moderator
    Posted 1 year ago #

    A vertex degree consists of the branches at the vertex, since we need a branch to connect two vertices, when the degrees of each vertex is counted we count each branch (edge) twice. Hence, the sum of degrees of all vertices is twice the sum of edges.

  3. Vick
    Member
    Posted 1 year ago #

    I dont think there is any direct relation between vertex and the number of edges in a graph. Could any obody please comment on it??


Reply

You must log in to post.

RSS feed for this topic