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
a240d1e2
Commit
a240d1e2
authored
Jul 20, 2015
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always copy entire property map in Graph.copy_property() when graph is filtered
parent
8d512bb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/graph_tool/__init__.py
src/graph_tool/__init__.py
+6
-0
No files found.
src/graph_tool/__init__.py
View file @
a240d1e2
...
...
@@ -1944,8 +1944,12 @@ class Graph(object):
g
=
self
is_directed
=
g
.
is_directed
()
efilt
=
g
.
get_edge_filter
()
vfilt
=
g
.
get_vertex_filter
()
try
:
g
.
set_directed
(
True
)
g
.
set_edge_filter
(
None
)
g
.
set_vertex_filter
(
None
)
if
src
.
key_type
()
==
"v"
:
self
.
__graph
.
CopyVertexProperty
(
g
.
__graph
,
_prop
(
"v"
,
g
,
src
),
...
...
@@ -1958,6 +1962,8 @@ class Graph(object):
tgt
[
self
]
=
src
[
g
]
finally
:
g
.
set_directed
(
is_directed
)
g
.
set_edge_filter
(
efilt
[
0
],
efilt
[
1
])
g
.
set_vertex_filter
(
vfilt
[
0
],
vfilt
[
1
])
return
ret
# degree property map
...
...
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