data: Added getName() method to Edge

format = EdgeType:fromNode->toNode
This commit is contained in:
Eberhard Graether
2014-07-27 02:22:45 +02:00
parent 473e26f072
commit b0e3cda41e
5 changed files with 56 additions and 17 deletions
+6 -6
View File
@@ -59,12 +59,12 @@ Edge* Graph::getEdgeById(Id id) const
Token* Graph::getTokenById(Id id) const
{
return findToken(
[id](Token* t)
{
return t->getId() == id;
}
);
Token* token = getNodeById(id);
if (!token)
{
token = getEdgeById(id);
}
return token;
}
Node* Graph::createNodeHierarchy(const std::string& fullName)