Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/graph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan J Hunt <jjhunt@google.com>2015-01-14 15:11:00 +0300
committerJonathan J Hunt <jjhunt@google.com>2015-01-14 15:11:00 +0300
commit44b0787555ab1e086f19ee68a9f83f065646cf66 (patch)
treea69f27af927de8bc1042d16f63e5dc8131b81b05
parentb07a42e7cfa9953a1981d1d0bc455a59635fa58b (diff)
Renamed graphName and graphAttributes to graphNodeName and graphNodeAttributes
for clarity.
-rw-r--r--init.lua9
1 files 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] ..