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:
authorkoray kavukcuoglu <koray@kavukcuoglu.org>2015-01-14 18:28:39 +0300
committerkoray kavukcuoglu <koray@kavukcuoglu.org>2015-01-14 18:28:39 +0300
commit76e09cdb159706d54e23862a3e949e3e78712889 (patch)
treea69f27af927de8bc1042d16f63e5dc8131b81b05
parent0eaa799c4fa494e8b46133f0d1c76f10538e32b1 (diff)
parent44b0787555ab1e086f19ee68a9f83f065646cf66 (diff)
Merge pull request #9 from jjh42/annotations
Renamed graphName and graphAttributes to graphNodeName and graphNodeAttr...
-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] ..