began switching to graph_tool library from nx; wrote provisional gn algo