From 44b0787555ab1e086f19ee68a9f83f065646cf66 Mon Sep 17 00:00:00 2001 From: Jonathan J Hunt Date: Wed, 14 Jan 2015 12:11:00 +0000 Subject: Renamed graphName and graphAttributes to graphNodeName and graphNodeAttributes for clarity. --- init.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index cb28e7d..8c588bf 100644 --- a/init.lua +++ b/init.lua @@ -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] .. -- cgit v1.2.3