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
3237d802
Commit
3237d802
authored
Nov 30, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename variable
parent
7f15d0ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
topydo/lib/Graph.py
topydo/lib/Graph.py
+4
-4
No files found.
topydo/lib/Graph.py
View file @
3237d802
...
...
@@ -185,10 +185,10 @@ class DirectedGraph(object):
childpairs
=
\
[(
c1
,
c2
)
for
c1
in
neighbors
for
c2
in
neighbors
if
c1
!=
c2
]
for
pair
in
childpairs
:
if
self
.
has_path
(
pair
[
0
],
pair
[
1
]
)
\
and
not
self
.
has_path
(
pair
[
0
]
,
from_node
):
removals
.
add
((
from_node
,
pair
[
1
]
))
for
child1
,
child2
in
childpairs
:
if
self
.
has_path
(
child1
,
child2
)
\
and
not
self
.
has_path
(
child1
,
from_node
):
removals
.
add
((
from_node
,
child2
))
for
edge
in
removals
:
self
.
remove_edge
(
edge
[
0
],
edge
[
1
])
...
...
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