Construct the edges array by copying the data from the user defined edges arrays to the internal storage.