Opened 18 years ago

Last modified 10 years ago

#380 reopened Bugs

Support for bundled properties in graph adaptors

Reported by: Douglas Gregor Owned by: Douglas Gregor
Milestone: To Be Determined Component: graph
Version: Boost 1.50.0 Severity: Problem
Keywords: Cc:

Description (last modified by Jeremiah Willcock)

The graph adaptors (such as subgraph) do not support bundled 
properties, but they should.

Change History (8)

comment:1 by Douglas Gregor, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=249098

Fixed in 1.33.0

comment:2 by Andrew Sutton, 13 years ago

Milestone: Boost 1.41.0
Resolution: None
Severity: Problem
Status: closedreopened
Version: NoneBoost Release Branch

Bundled property support for subgraphs is broken since bundled property lookups are not translated to the root graph. This might be resolved by creating a property_map partial specialization for bundled property maps of subgraphs and simply delegating the reference to the root graph.

Related, subgraph does not appear to model several of the MutableGraph or MutablePropertyGraph requirements such as add_vertex(vp,g) or remove_vertex(v,g).

comment:3 by Jeremiah Willcock, 13 years ago

Type: BugsFeature Requests

comment:4 by Jeremiah Willcock, 13 years ago

Type: Feature RequestsBugs

comment:5 by Jeremiah Willcock, 12 years ago

Is this problem still present in the current trunk? If so, does someone have an example that fails?

comment:6 by Jeremiah Willcock, 12 years ago

Milestone: Boost 1.41.0To Be Determined

comment:7 by Jeremiah Willcock, 11 years ago

Description: modified (diff)
Resolution: wontfix
Status: reopenedclosed

This is likely to work now, so closing as wontfix. Please reopen if the problem still exists in the trunk version of Boost.

comment:8 by s.seifried@…, 10 years ago

Resolution: wontfix
Status: closedreopened
Version: Boost Release BranchBoost 1.50.0

I most probably have the same problem as the original author, but with bundled properties and labeled_graph.

I tried to convert my original implementation from a normal

adjacency_list<setS, vecS, bidirectionalS, MyVertexInfo, MyEdgeInfo, no_property>

to

labeled_graph< _same_adjacency_defintion_, uuid>

only to find out that write_graphml does not work any more.

I verified that the correct information is still present in the in-memory graph, but only the default values are written to graphml file.

dynamic_properties test;
test.property ("Debug", get (&MyVertexInfo::Info, m_Graph.graph()));

write_graphml (ofile, m_Graph.graph(), test);

somehow only default values are written to the file. I tried again to write "normal properties", which work ok.

test.property("ID", get (vertex_index, m_Graph));
Note: See TracTickets for help on using tickets.