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
67f2bb5c
Commit
67f2bb5c
authored
Dec 04, 2013
by
Tiago Peixoto
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix remaining incompatibilities with graphviz > 2.30
parent
995c8809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
src/graph_tool/draw/graphviz_draw.py
src/graph_tool/draw/graphviz_draw.py
+13
-4
No files found.
src/graph_tool/draw/graphviz_draw.py
View file @
67f2bb5c
...
...
@@ -420,7 +420,10 @@ def graphviz_draw(g, pos=None, size=(15, 15), pin=False, layout=None,
else
:
vertices
=
g
.
vertices
()
for
v
in
vertices
:
n
=
libgv
.
agnode
(
gvg
,
str
(
int
(
v
)).
encode
(
"utf8"
))
if
gv_new_api
:
n
=
libgv
.
agnode
(
gvg
,
str
(
int
(
v
)).
encode
(
"utf8"
))
else
:
n
=
libgv
.
agnode
(
gvg
,
str
(
int
(
v
)).
encode
(
"utf8"
),
True
)
if
type
(
vsize
)
==
PropertyMap
:
vw
=
vh
=
vsize
[
v
]
...
...
@@ -467,9 +470,15 @@ def graphviz_draw(g, pos=None, size=(15, 15), pin=False, layout=None,
else
:
edges
=
g
.
edges
()
for
e
in
edges
:
ge
=
libgv
.
agedge
(
gvg
,
libgv
.
agnode
(
gvg
,
str
(
int
(
e
.
source
())).
encode
(
"utf8"
)),
libgv
.
agnode
(
gvg
,
str
(
int
(
e
.
target
())).
encode
(
"utf8"
)))
if
gv_new_api
:
ge
=
libgv
.
agedge
(
gvg
,
libgv
.
agnode
(
gvg
,
str
(
int
(
e
.
source
())).
encode
(
"utf8"
),
False
),
libgv
.
agnode
(
gvg
,
str
(
int
(
e
.
target
())).
encode
(
"utf8"
),
False
),
str
(
g
.
edge_index
[
e
]).
encode
(
"utf8"
),
True
)
else
:
ge
=
libgv
.
agedge
(
gvg
,
libgv
.
agnode
(
gvg
,
str
(
int
(
e
.
source
())).
encode
(
"utf8"
)),
libgv
.
agnode
(
gvg
,
str
(
int
(
e
.
target
())).
encode
(
"utf8"
)))
aset
(
ge
,
"arrowsize"
,
"0.3"
)
if
g
.
is_directed
():
aset
(
ge
,
"arrowhead"
,
"vee"
)
...
...
Tiago Peixoto
@count0
mentioned in issue
#125 (closed)
·
Aug 06, 2014
mentioned in issue
#125 (closed)
mentioned in issue #125
Toggle commit list
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