update the degree of new connected friends

Given two friends pair 
"davidbowie  omid   1" 
"davidbowie  kim   2"
Degree(omid,kim) 
= Degree(davidbowie,omid)+Degree(davidbowie,kim)
= 1 + 2 = 3