Thanks guys. The networkx and igraph packages look to have the sort of features I want. I'm surprised there's nothing in the standard module library really. -- Ant...