Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
d510368f
Commit
d510368f
authored
Jul 18, 2016
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix further Python 2 issues
parent
70bf7408
Pipeline
#204
failed with stage
in 4545 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
doc/conf.py
doc/conf.py
+4
-0
src/graph_tool/__init__.py
src/graph_tool/__init__.py
+1
-1
No files found.
doc/conf.py
View file @
d510368f
...
...
@@ -14,6 +14,10 @@
import
sys
,
os
if
sys
.
version_info
<
(
3
,):
reload
(
sys
)
sys
.
setdefaultencoding
(
"Cp1252"
)
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
...
...
src/graph_tool/__init__.py
View file @
d510368f
...
...
@@ -2261,7 +2261,7 @@ class Graph(object):
given by ``deg``, which can be any of ``"in"``, ``"out"``, or ``"total"``.
If provided, ``weight`` should be an edge :class:`~graph_tool.PropertyMap`
containing the edge weights which should be summed."""
pmap
=
self
.
__graph
.
degree_map
(
deg
,
_prop
(
"e"
,
self
,
weight
))
pmap
=
self
.
__graph
.
degree_map
(
_to_str
(
deg
)
,
_prop
(
"e"
,
self
,
weight
))
return
PropertyMap
(
pmap
,
self
,
"v"
)
# I/O operations
...
...
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