Added a bit from networkx
import collections as a module.
Added a few more checks.
Merge branch 'master' of github.com:fnielsen/everything