Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
9d0006a4
Commit
9d0006a4
authored
Jan 20, 2016
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cairo_draw(): Check if vorder is of scalar type
This fixes issue #264
parent
a6a09e6b
Pipeline
#99
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/graph_tool/draw/cairo_draw.py
src/graph_tool/draw/cairo_draw.py
+4
-0
No files found.
src/graph_tool/draw/cairo_draw.py
View file @
9d0006a4
...
...
@@ -30,6 +30,7 @@ import warnings
import
numpy
from
..
topology
import
shortest_distance
,
is_bipartite
from
..
import
_check_prop_scalar
try
:
import
cairo
...
...
@@ -608,6 +609,9 @@ def cairo_draw(g, pos, cr, vprops=None, eprops=None, vorder=None, eorder=None,
rendering was complete.
"""
if
vorder
is
not
None
:
_check_prop_scalar
(
vorder
,
name
=
"vorder"
)
vprops
=
{}
if
vprops
is
None
else
copy
.
copy
(
vprops
)
eprops
=
{}
if
eprops
is
None
else
copy
.
copy
(
eprops
)
...
...
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