Fixed indexing issue mentioned before

each vertex has a unix idx in the graph determined during building the
graph. allows fast retrivals.