Set start index in nodeEdges properly.

Also increment number of edges of each node when creating new edge.