Fixing API change in networkx; Fixing bug intriduced in previous commits; add new rank_method in plot to have the same layout as in CellNOptR