diff options
author | koray kavukcuoglu <koray@kavukcuoglu.org> | 2015-01-14 18:28:39 +0300 |
---|---|---|
committer | koray kavukcuoglu <koray@kavukcuoglu.org> | 2015-01-14 18:28:39 +0300 |
commit | 76e09cdb159706d54e23862a3e949e3e78712889 (patch) | |
tree | a69f27af927de8bc1042d16f63e5dc8131b81b05 | |
parent | 0eaa799c4fa494e8b46133f0d1c76f10538e32b1 (diff) | |
parent | 44b0787555ab1e086f19ee68a9f83f065646cf66 (diff) |
Merge pull request #9 from jjh42/annotations
Renamed graphName and graphAttributes to graphNodeName and graphNodeAttr...
-rw-r--r-- | init.lua | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -200,16 +200,17 @@ function Graph:todot(title) local nodelabels = {} for i,node in ipairs(nodes) do local nodeName - if node.graphName then - nodeName = node:graphName() + if node.graphNodeName then + nodeName = node:graphNodeName() else nodeName = 'Node' .. node.id end local l = graph._dotEscape(nodeName .. '\n' .. node:label()) nodelabels[node] = 'n' .. node.id local graphAttributes = '' - if node.graphAttributes then - graphAttributes = makeAttributeString(node:graphAttributes()) + if node.graphNodeAttributes then + graphAttributes = makeAttributeString( + node:graphNodeAttributes()) end table.insert(str, '\n' .. nodelabels[node] .. |