diff options
author | Jonathan J Hunt <jjhunt@google.com> | 2015-01-14 15:11:00 +0300 |
---|---|---|
committer | Jonathan J Hunt <jjhunt@google.com> | 2015-01-14 15:11:00 +0300 |
commit | 44b0787555ab1e086f19ee68a9f83f065646cf66 (patch) | |
tree | a69f27af927de8bc1042d16f63e5dc8131b81b05 | |
parent | b07a42e7cfa9953a1981d1d0bc455a59635fa58b (diff) |
Renamed graphName and graphAttributes to graphNodeName and graphNodeAttributes
for clarity.
-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] .. |