ADDED: seperate function to get the degrees of the nodes

Forgot to add one to the degrees for diagonal terms.  Also cleaned up
pyx file and added some more comemnts so I dont forget.