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