Moving to 0-index graph representation.