|
Boost Users : |
Subject: [Boost-users] Adding additional property in Boost graph object.
From: Amanullah Yasin (amanyasin_at_[hidden])
Date: 2009-11-29 19:09:58
Hi,
Dear all
I want to add one additional edge property in Boost graph object of type
"bool". Please guide me how i can do it. I tried but not successful.
////////////////////// Here is the main definition of Boost graph object
"slGraph" /////////////////////////////////////////////////////////////////////////
namespace boost {
struct computable_object_t
{
typedef vertex_property_tag kind;
};
}
typedef boost::property<boost::vertex_index_t, unsigned int,
boost::property<boost::computable_object_t,
plComputableObject*> >
slVertexProperty;
typedef boost::property<boost::edge_weight_t, slScoreValueType>
slEdgeProperty;
typedef boost::adjacency_list<boost::vecS, boost::listS,
boost::bidirectionalS,
\ slVertexProperty, slEdgeProperty> slGraph;
typedef slGraph::vertex_descriptor slNode;
typedef slGraph::edge_descriptor slEdge;
typedef slGraph::vertex_iterator slNodeIterator;
typedef slGraph::edge_iterator slEdgeIterator;
typedef slGraph::out_edge_iterator slOutEdgeIterator;
typedef slGraph::in_edge_iterator slInEdgeIterator;
typedef slGraph::adjacency_iterator slOutNodeIterator;
typedef slGraph::inv_adjacency_iterator slInNodeIterator;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Thanks in advance.
Amanullah YASIN
PhD student
Equipe COD (Connaissances et Décision)
LINA (Laboratoire d'Informatique de Nantes Atlantique)
Ecole Polytechnique de l'Université de Nantes
La Chantrerie - rue Christian Pauc - BP 50609
44306 Nantes Cedex 3
FRANCE
Mob# 06 99 07 49 71
Fix # 02 72 00 26 45
amanyasin@ gmail.com, hotmail.com, yahoo.com
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