Boost logo

Boost Users :

From: Greg Reynolds (gmr001_at_[hidden])
Date: 2006-11-13 17:18:23


Hi,

I am trying to use the subgraph class with bundled propeties and wonder if
it is still broken? I found a message on the list saying that it
was broken in March 2005, but would probably be fixed shortly.

I include my code below. It compiles cleanly if I don't use subgraph, i.e.
just declare the adjacency_list. It also works if use the internal
properties method.

Thanks,

Greg

// ... appropriate headers

using namespace std;
using namespace boost;

typedef unsigned long int uvid;

struct VertexProperty {
         uvid gmr_number;
         vector<string> labels;
};

struct EdgeProperty {
         std::size_t biconnected_component;
         vector<string> labels;
};

typedef adjacency_list<setS, vecS, undirectedS, VertexProperty, EdgeProperty> GraphPlain;

typedef subgraph< GraphPlain > Graph;

int main(int argc, char* argv[])
{
         GraphPlain g1;
         Graph g;

         return 0;
}


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net