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
40
Issues
40
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
28fee35d
Commit
28fee35d
authored
Jun 05, 2019
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graph_draw(): Avoid drawing selected vertices, when none exist
This fixes issue
#551
parent
55355c90
Pipeline
#479
failed with stage
in 177 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/graph_tool/draw/gtk_draw.py
src/graph_tool/draw/gtk_draw.py
+4
-4
No files found.
src/graph_tool/draw/gtk_draw.py
View file @
28fee35d
...
...
@@ -22,9 +22,9 @@ from __future__ import division, absolute_import, print_function
import
numpy
from
..
import
GraphView
,
PropertyMap
,
ungroup_vector_property
,
\
group_vector_property
,
infect_vertex_property
,
edge_endpoint
_property
,
\
_prop
from
..
import
GraphView
,
PropertyMap
,
VertexPropertyMap
,
\
ungroup_vector_property
,
group_vector_property
,
infect_vertex
_property
,
\
edge_endpoint_property
,
_prop
from
.cairo_draw
import
*
from
.cairo_draw
import
_vdefaults
,
_edefaults
from
..
draw
import
sfdp_layout
,
random_layout
,
_avg_edge_distance
,
\
...
...
@@ -576,7 +576,7 @@ class GraphWidget(Gtk.DrawingArea):
cr
.
paint
()
cr
.
restore
()
if
self
.
picked
is
not
None
or
self
.
picked
is
not
False
:
if
self
.
selected
.
fa
.
sum
()
>
0
:
# draw immediate neighborhood
if
self
.
selected
.
fa
.
sum
()
==
1
:
vprops
=
dict
(
**
self
.
vprops
)
...
...
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