Skip to content

indices_ and to_be_indexed_ miss from graph_adaptor class #6

Description

@gonidelis

I am building with

  • g++ = 11.1
  • TBB latest (> 2021.6.0)

on WSL and encountering the following error:


In file included from /home/giannis/nwgraph/NWGraph/test/graph_adaptor_eg.cpp:4:
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp: In instantiation of ‘void nw::graph::fill_undirected(edge_list_t&, Int, adjacency_t&, ExecutionPolicy&&) [with int idx = 0; edge_list_t = nw::graph::index_edge_list<unsigned int, nw::graph::unipartite_graph_base, nw::graph::directedness::directed, int>; Int = int; adjacency_t = nw::graph::graph_adaptor<std::vector<std::vector<int> > >; ExecutionPolicy = __pstl::execution::v1::parallel_unsequenced_policy]’:
/home/giannis/nwgraph/NWGraph/test/graph_adaptor_eg.cpp:19:21:   required from here
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:285:8: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘indices_’
  285 |     cs.indices_.resize(N + 1);
      |     ~~~^~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:286:8: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘indices_’
  286 |     cs.indices_[0] = 0;
      |     ~~~^~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:288:68: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘indices_’
  288 |     std::inclusive_scan(policy, degrees.begin(), degrees.end(), cs.indices_.begin() + 1);
      |                                                                 ~~~^~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:291:6: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘to_be_indexed_’
  291 |   cs.to_be_indexed_.resize(Tmp.size());
      |   ~~~^~~~~~~~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:293:88: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘to_be_indexed_’
  293 |   std::copy(policy, std::get<kdx>(el).begin(), std::get<kdx>(el).end(), std::get<0>(cs.to_be_indexed_).begin());      |                                                                                     ~~~^~~~~~~~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:294:88: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘to_be_indexed_’
  294 |   std::copy(policy, std::get<idx>(el).begin(), std::get<idx>(el).end(), std::get<0>(cs.to_be_indexed_).begin() + el.size());

I applied the fixes mentioned in #1 regarding the missing test fail.

Any ideas what could I be missing?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions