Skip to content
GitLab
Menu
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
1f792136
Commit
1f792136
authored
Jul 02, 2020
by
Tiago Peixoto
Browse files
Graph.list_properties(): do not sort properties
parent
64520e73
Pipeline
#660
passed with stage
in 168 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
1f792136
...
...
@@ -2562,7 +2562,7 @@ class Graph(object):
w
=
max
([
len
(
x
[
0
])
for
x
in
list
(
self
.
__properties
.
keys
())])
+
4
w
=
w
if
w
>
14
else
14
for
k
,
v
in
sorted
(
self
.
graph_properties
.
items
()
,
key
=
lambda
k
:
k
[
0
])
:
for
k
,
v
in
self
.
graph_properties
.
items
():
pref
=
"%%-%ds (graph) (type: %%s, val: "
%
w
%
(
k
,
v
.
value_type
())
val
=
str
(
v
[
self
])
if
len
(
val
)
>
1000
:
...
...
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