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
6a70e32f
Commit
6a70e32f
authored
May 09, 2008
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of edge index property maps
parent
7d8195d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
src/graph/graph_properties.hh
src/graph/graph_properties.hh
+2
-1
src/graph/graph_python_interface_export.cc
src/graph/graph_python_interface_export.cc
+11
-3
No files found.
src/graph/graph_properties.hh
View file @
6a70e32f
...
...
@@ -211,7 +211,8 @@ boost::any prop(const string& name, IndexMap,
}
else
{
typedef
typename
property_map_types
::
apply
<
value_types
,
IndexMap
>::
type
typedef
typename
property_map_types
::
apply
<
value_types
,
IndexMap
,
mpl
::
bool_
<
true
>
>::
type
properties_t
;
bool
found
=
false
;
mpl
::
for_each
<
properties_t
>
(
lambda
::
bind
<
void
>
(
get_static_prop
(),
...
...
src/graph/graph_python_interface_export.cc
View file @
6a70e32f
...
...
@@ -107,12 +107,20 @@ struct export_edge_property_map
template
<
class
PropertyMap
>
void
operator
()(
PropertyMap
)
const
{
using
python
::
detail
::
gcc_demangle
;
typedef
PythonPropertyMap
<
PropertyMap
>
pmap_t
;
string
type_name
=
type_names
[
mpl
::
find
<
value_types
,
typename
pmap_t
::
value_type
>::
type
::
pos
::
value
];
string
type_name
;
if
(
is_same
<
typename
mpl
::
find
<
value_types
,
typename
pmap_t
::
value_type
>::
type
,
typename
mpl
::
end
<
value_types
>::
type
>::
value
)
type_name
=
gcc_demangle
(
typeid
(
typename
pmap_t
::
value_type
).
name
());
else
type_name
=
type_names
[
mpl
::
find
<
value_types
,
typename
pmap_t
::
value_type
>
::
type
::
pos
::
value
];
string
class_name
=
_name
+
"<"
+
type_name
+
">"
;
python
::
class_
<
pmap_t
>
pclass
(
class_name
.
c_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