Moved addEdge() to abstract class