added LineGraph.makeIndexed