degree.dbn.fit function

Calculates the degree of a list of nodes