addRelation method
Add a new relation to the graph
Implementation
@override
void addRelation(Relation relation, {bool replaceIfExists = true}) {
if (replaceIfExists) {
removeRelation(relation.id);
}
_relations.add(relation);
}
Add a new relation to the graph
@override
void addRelation(Relation relation, {bool replaceIfExists = true}) {
if (replaceIfExists) {
removeRelation(relation.id);
}
_relations.add(relation);
}