Fixed bug that was causing edges from one dataset to override edges from another dataset.