Update GraphUsingArrays