Dear users of boost graph library,
I would like to extend boost::adjacency_list like this
code:
class MyGraph:
public boost::adjacency_list,
boost::property {}
This works as expected.
Is it possible to extend class "MyGraph" with additional vertex and/or edge properties defined?
My first approach was like this
code:
template <class AdditionalVertexProperty = boost::no_property, class AdditionalEdgeProperty = boost::no_property>
class MyGraph:
public boost::adjacency_list,
boost::property {}
class ExtendedMyGraph: public MyGraph > {}
This, however, led into multiple compiler errors. Does anyone know how to achieve the wanted behavior?
Thanks in advance
Jupp