2d Array Representation As Graph