i have two classes BaseNode and BaseEdge which i can use connect method to connect tow nodes via an edge in these classes.
BaseNode
BaseEdge
connect