Made correct edges between names