Added the getSource() method to the edges