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
9e8fd596
Commit
9e8fd596
authored
Jan 11, 2009
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix drawing of undirected graph
parent
7e99bed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/graph_tool/draw/__init__.py
src/graph_tool/draw/__init__.py
+2
-1
No files found.
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
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