cyclegraph: separate an 'addEdge(CycleNode *, CycleNode *) function