Hi
this message may have been sent twice as i got an error on my previous
post, if so I apologize
I'd like to build a boost graph from my own graph representation which
is made of:
std::vector
any help would be appreciated in the meantime I have compiled layout_test.cpp with BCB6 and I had to change some files of the library Here is the modified code (it might help somebody) (note you have to define BOOST_NO_CV_SPECIALIZATIONS in your compiler options) I'm using boost 1 35. 2 files were modified. Changes are marked with "ERBRI CHANGE" ======================================================== relaxed_heap.hpp from line 33 class relaxed_heap { struct group; typedef relaxed_heap self_type; typedef std::size_t rank_type; public: typedef IndexedType value_type; typedef rank_type size_type; // ERBRI CHANGE // use a typedef and make it public typedef enum { smallest_key, stored_key, largest_key } group_key_kind; // ERBRI CHANGE private: /** * The kind of key that a group has. The actual values are discussed * in-depth in the documentation of the @c kind field of the @c group * structure. Note that the order of the enumerators *IS* important * and must not be changed. */ // ERBRI CHANGE // commented => original code // enum group_key_kind { smallest_key, stored_key, largest_key }; // ERBRI CHANGE ..... ======================================================== relaxed_heap.hpp from line 228 for (size_type i = start; i < end; ++i) { // if ( groups[i] && (!x->value || compare(*groups[i], *x->value))) { // ERBRI CHANGE => same code but if splitted in 2 if if ( groups[i] ) { if (!x->value || compare(*groups[i], *x->value) ) { x->kind = stored_key; x->value = groups[i]; } } } .... ======================================================== facade_iterator_category.hpp from line 145 BOOST_MPL_ASSERT_NOT(( is_convertible< /*typename ERBRI CHANGE => remove typename*/ iterator_category_to_traversal<Category>::type , Traversal >));
Hi Eric
I am not really clear what you need. I am not an expert rather a newbie but I have used boost to make graphs
Here are some sample code for making a graph
make a graph.h file including (or make it all in one file what you prefer):
#include <vector>
#include
participants (2)
-
Eric B
-
Line Blander Reinhardt