Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
dd5bb5c0
Commit
dd5bb5c0
authored
Jun 08, 2017
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'python36'
parents
f0303137
82e8c4c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
.travis.yml
.travis.yml
+1
-0
topydo/lib/Graph.py
topydo/lib/Graph.py
+2
-2
No files found.
.travis.yml
View file @
dd5bb5c0
...
@@ -4,6 +4,7 @@ python:
...
@@ -4,6 +4,7 @@ python:
-
"
3.3"
-
"
3.3"
-
"
3.4"
-
"
3.4"
-
"
3.5"
-
"
3.5"
-
"
3.6"
env
:
env
:
-
GREEN_OPTS=
-
GREEN_OPTS=
...
...
topydo/lib/Graph.py
View file @
dd5bb5c0
...
@@ -197,10 +197,10 @@ class DirectedGraph(object):
...
@@ -197,10 +197,10 @@ class DirectedGraph(object):
""" Prints the graph in Dot format. """
""" Prints the graph in Dot format. """
out
=
'digraph g {
\
n
'
out
=
'digraph g {
\
n
'
for
from_node
,
neighbors
in
s
elf
.
_edges
.
items
(
):
for
from_node
,
neighbors
in
s
orted
(
self
.
_edges
.
items
()
):
out
+=
" {}
\
n
"
.
format
(
from_node
)
out
+=
" {}
\
n
"
.
format
(
from_node
)
for
neighbor
in
neighbors
:
for
neighbor
in
sorted
(
neighbors
)
:
out
+=
" {} -> {}"
.
format
(
from_node
,
neighbor
)
out
+=
" {} -> {}"
.
format
(
from_node
,
neighbor
)
edge_id
=
self
.
edge_id
(
from_node
,
neighbor
)
edge_id
=
self
.
edge_id
(
from_node
,
neighbor
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment