Question: Nearby degree sum

Find the sum of the degrees of the Neighbors of a vertex say u in a graph G. Kind help with writing a function.

Please Wait...