[graph] Bundled properties in subgraphs
Hello, It seems that bundled properties still don't work with subgraphs. I found a mention of the problem dating back to 2005 [1], a closed ticket for the issue [2] and another post [3], this time from 2008, with an ex tempore fix (which doesn't work for me). Could someone possibly account for that? [1] http://lists.boost.org/boost-users/2005/03/10844.php [2] https://svn.boost.org/trac/boost/ticket/380 [3] http://www.nabble.com/-graph--property_map-from-bundled-properties-in-a-subg... TIA, Greg Slodkowicz
It seems that bundled properties still don't work with subgraphs. I found a mention of the problem dating back to 2005 [1], a closed ticket for the issue [2] and another post [3], this time from 2008, with an ex tempore fix (which doesn't work for me). Could someone possibly account for that?
[1] http://lists.boost.org/boost-users/2005/03/10844.php [2] https://svn.boost.org/trac/boost/ticket/380 [3] http://www.nabble.com/-graph--property_map-from-bundled-properties-in-a-subg...
If I had to guess, I would say that there aren't very many people using subgraph so it's implementation hasn't evolved with the rest of the library. That's probably true of a lot of BGL code. How quickly do you need a fix? I'm pretty busy for the next week of so, but I might be able to make some time this weekend. Andrew Sutton andrew.n.sutton@gmail.com
If I had to guess, I would say that there aren't very many people using subgraph so it's implementation hasn't evolved with the rest of the library. That's probably true of a lot of BGL code.
How quickly do you need a fix? I'm pretty busy for the next week of so, but I might be able to make some time this weekend.
This weekend would be really great, I need it for a project at work and can't move on without that functionality. Thanks a lot, Greg
It seems that bundled properties still don't work with subgraphs. I found a mention of the problem dating back to 2005 [1], a closed ticket for the issue [2] and another post [3], this time from 2008, with an ex tempore fix (which doesn't work for me). Could someone possibly account for that?
[1] http://lists.boost.org/boost-users/2005/03/10844.php [2] https://svn.boost.org/trac/boost/ticket/380 [3] http://www.nabble.com/-graph--property_map-from-bundled-properties-in-a-subg...
TIA, Greg Slodkowicz
I applied the patch from Dmitry and added a new test file for subgraphs with
bundled properties and everything seems to work just fine in trunk. There
are some caveats, of course.
1. Subraphs require interior index properties for both vertices and edges,
and no adjacency list provides both of these by default. You get vertex
indices with VertexSet == vecS, but that's about it. You have to modify the
properties of the *underlying* adjacency list - not just the subgraph. For
example:
// Define the edge property
struct my_edge { ... };
typedef property
participants (2)
-
Andrew Sutton
-
Grzegorz Slodkowicz