Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
9e8fd596
Commit
9e8fd596
authored
Jan 11, 2009
by
Tiago Peixoto
Browse files
Fix drawing of undirected graph
parent
7e99bed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/__init__.py
View file @
9e8fd596
...
...
@@ -121,7 +121,8 @@ def graph_draw(g, pos=None, size=(15,15), pin=False, layout="neato",
ge
=
gv
.
edge
(
nodes
[
g
.
vertex_index
[
e
.
source
()]],
nodes
[
g
.
vertex_index
[
e
.
target
()]])
gv
.
setv
(
ge
,
"arrowsize"
,
"0.3"
)
gv
.
setv
(
ge
,
"arrowhead"
,
"vee"
)
if
g
.
is_directed
():
gv
.
setv
(
ge
,
"arrowhead"
,
"vee"
)
# apply color
if
ecolor
!=
None
:
if
isinstance
(
ecolor
,
str
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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