Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
graph_drawing
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
graph_drawing
Commits
775db0cb
Commit
775db0cb
authored
Mar 14, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added possibility to overrite 'construct_function'.
parent
c0a73ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
line.py
line.py
+10
-1
No files found.
line.py
View file @
775db0cb
...
@@ -203,7 +203,16 @@ def generate_line(root):
...
@@ -203,7 +203,16 @@ def generate_line(root):
else
:
else
:
content
[
node
]
=
construct_nary
(
node
)
content
[
node
]
=
construct_nary
(
node
)
else
:
else
:
content
[
node
]
=
construct_function
(
node
)
result
=
None
if
hasattr
(
node
,
'construct_function'
):
children
=
[
content
[
c
]
for
c
in
node
]
result
=
node
.
construct_function
(
children
)
if
result
==
None
:
result
=
construct_function
(
node
)
content
[
node
]
=
result
# Add negations
# Add negations
content
[
node
]
=
'-'
*
node
.
negated
+
content
[
node
]
content
[
node
]
=
'-'
*
node
.
negated
+
content
[
node
]
...
...
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