networkx plotting added; thanks to padraig