Boost logo

Boost Users :

From: Jean-Olivier Racine (joracine_at_[hidden])
Date: 2008-02-29 15:17:12


Good day,

 

I have a graph with bundled properties attached to both the vertices and
edges.

typedef long int ASElementID;

enum ASRelationships

{

      NoRelationship,

      IsContaining,

      IsBeside,

      IsAbove,

      IsCommentedBy,

      IsMadeOf

};

typedef boost::adjacency_list<boost::vecS, boost::listS,
boost::bidirectionalS, ASElementID, ASRelationships> Graph;

 

When using the write_graphviz and writing my property writer, I get the
error_property_not_found error. Reading post 18294
(http://thread.gmane.org/gmane.comp.lib.boost.user/18294) I see what I
should probably do. My problem is that I cannot give the address of
ASElementID since it is an int. Is it a limitation? Do I *have* to use a
struct for it to work? Something like:

struct IDType

{int ID};

 

Thanks and have a nice weekend!

Jean-Olivier



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