Boost logo

Boost :

Subject: [boost] Boost Graph Library(biconnected_components) issue
From: Meghana.M Reddy (mreddymeghana_at_[hidden])
Date: 2018-05-06 07:51:46


I am working on the Boost Graph Library, currently trying to create an
interface of the biconnected_components method to a Python code. I used the
example code available here
for the method and modified it for my purpose. The template of the method
is here
The final code seems fine but I get an error while compiling it. And the
errors are related to adjacency.hpp which I have not changed so I'm
confused as to what the exact problem is. Hoping someone can help me out.
My code:

class BoostGraph
    typedef typename boost::adjacency_list<
      OutEdgeListS, VertexListS, DirectedS,
      boost::property<boost::vertex_index_t, v_index>,
      EdgeProperty, boost::no_property, EdgeListS> adjacency_list;
typedef typename boost::property_map<adjacency_list,
boost::edge_index_t>::type components;
    adjacency_list graph;
    std::vector<v_index> bc_tree() {
        components components_bc = get(boost::edge_index, graph);
        std::size_t num_comps = biconnected_components(graph,
        std::cerr << "Found " << num_comps << " biconnected components.\n";

        std::vector<vertex_descriptor> art_points;
        articulation_points(graph, std::back_inserter(art_points));
        std::cerr << "Found " << art_points.size() << " articulation
        std::vector<v_index> to_return;
        return to_return;

The error I'm getting:

build/cythonized/sage/graphs/base/boost_graph.cpp:3730:26: required from
error: forming reference to void
         typedef value_type& reference;
error: forming reference to void
         typedef const value_type& const_reference;
error: forming reference to void
             typename Graph::vertex_descriptor,Property,Tag> type;
error: forming reference to void
             typename Graph::vertex_descriptor,const Property, Tag>
error: command 'gcc' failed with exit status 1
Makefile:33: recipe for target 'sage' failed
make: *** [sage] Error 1

Thank you,

Boost list run by bdawes at, gregod at, cpdaniel at, john at