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:
authorIvo Danihelka <ivo@danihelka.net>2013-07-23 14:27:44 +0400
committerIvo Danihelka <ivo@danihelka.net>2013-07-23 14:27:44 +0400
commiteb7af45e2488a45a6458d1fdec5667edb84a58a8 (patch)
treeac718ba83c0b23b283f97922b632276815587fae /init.lua
parent4185765bbe5653a2bb05c5891679881a7b3c3d42 (diff)
Used a local var for str.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 7a5b6c5..7e5fe8b 100644
--- a/init.lua
+++ b/init.lua
@@ -166,7 +166,7 @@ end
function Graph:todot(title)
local nodes = self.nodes
local edges = self.edges
- str = {}
+ local str = {}
table.insert(str,'digraph G {\n')
if title then
table.insert(str,'labelloc="t";\nlabel="' .. title .. '";\n')