updated adjacency and degree finding
updated adjacency and degree finding

cgranade/qutip,qutip/qutip,anubhavvardhan/qutip,anubhavvardhan/qutip,cgranade/qutip,zasdfgbnm/qutip,zasdfgbnm/qutip,qutip/qutip