We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
edge
Relationship::disconnector
1 parent 183e382 commit 8d5ee7eCopy full SHA for 8d5ee7e
src/relationship.h
@@ -84,7 +84,7 @@ class Relationship {
84
void operator()(DiGraph* digraph, tail_t* tail, head_t* head) {
85
if (tail and head) {
86
Edge<tail_t, head_t>* edge = tail->Relationship<tail_t, head_t>::getOutgoingEdge();
87
- if (edge->getHead() == head) {
+ if (edge and edge->getHead() == head) {
88
tail->Relationship<tail_t, head_t>::disconnect(edge);
89
tail->removeEdge(edge);
90
head->Relationship<tail_t, head_t>::disconnect(edge);
0 commit comments