renamed graph.nodes and graph.links to graph.n and graph.e to distinguish properties from global vars; fixed a bug which deleted node.array_index too early for some nodes