Fix motifs() for undirected graphs

This fixes a bug where the isomorphism class for undirected subgraphs
was wrongly computed using their directed view.
8 jobs for master
Status Job ID Name Coverage
  Test
failed #859
amd64
job_clang_amd64

00:01:34

failed #863
amd64
job_clang_amd64_nosh

00:01:06

failed #861
amd64
job_clang_py2_amd64

00:01:05

failed #856
i386
job_gcc_386

04:48:17

failed #858
amd64
job_gcc_amd64

02:50:31

failed #862
amd64
job_gcc_amd64_nosh

03:01:38

failed #857
i386
job_gcc_py2_386

04:44:44

failed #860
amd64
job_gcc_py2_amd64

02:48:19

 
Name Stage Failure
failed
job_gcc_386 Test There is an unknown failure, please try again
  warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3/dist-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3/dist-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3/dist-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")

ERROR: Build failed with: exit status 1
failed
job_gcc_py2_386 Test There is an unknown failure, please try again
Doctest summary
===============
860 tests
4 failures in tests
0 failures in setup code
0 failures in cleanup code
build finished with problems, 137 warnings.

ERROR: Build failed with: exit status 1
failed
job_clang_amd64 Test There is an unknown failure, please try again
                                    ^
./../mpl_nested_loop.hh:195:9: note: in instantiation of member function 'boost::mpl::for_each_variadic<boost::mpl::inner_loop<boost::mpl::all_any_cast<graph_tool::detail::action_wrap<std::_Bind<graph_tool::get_eigenvector (std::_Placeholder<1>, boost::typed_identity_property_map<unsigned long>, std::_Placeholder<2>, std::_Placeholder<3>, double, unsigned long, std::reference_wrapper<long double>)>, mpl_::bool_<false> >, 3>, std::tuple<>, boost::mpl::v_item<graph_tool::UnityPropertyMap<int, boost::adj_list<unsigned long>::edge_descriptor>, graph_tool::writable_edge_scalar_properties, 0>, graph_tool::vertex_floating_properties>, std::tuple<boost::adj_list<unsigned long>, boost::filtered_graph<boost::adj_list<unsigned long>, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::adj_edge_index_property_map<unsigned long> > >, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::typed_identity_property_map<unsigned long> > > >, boost::reverse_graph<boost::adj_list<unsigned long>, const boost::adj_list<unsigned long> &>, boost::reverse_graph<boost::filtered_graph<boost::adj_list<unsigned long>, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::adj_edge_index_property_map<unsigned long> > >, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::typed_identity_property_map<unsigned long> > > >, const boost::filtered_graph<boost::adj_list<unsigned long>, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::adj_edge_index_property_map<unsigned long> > >, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::typed_identity_property_map<unsigned long> > > > &>, boost::UndirectedAdaptor<boost::adj_list<unsigned long> >, boost::UndirectedAdaptor<boost::filtered_graph<boost::adj_list<unsigned long>, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::adj_edge_index_property_map<unsigned long> > >, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::typed_identity_property_map<unsigned long> > > > > > >::operator()' requested here
for_each_variadic<inner_loop_t, tr_tuple>()(inner_loop_t(b));
^
./../graph_filtering.hh:463:25: note: in instantiation of function template specialization 'boost::mpl::nested_for_each<graph_tool::detail::all_graph_views, boost::mpl::v_item<graph_tool::UnityPropertyMap<int, boost::adj_list<unsigned long>::edge_descriptor>, graph_tool::writable_edge_scalar_properties, 0>, graph_tool::vertex_floating_properties, graph_tool::detail::action_wrap<std::_Bind<graph_tool::get_eigenvector (std::_Placeholder<1>, boost::typed_identity_property_map<unsigned long>, std::_Placeholder<2>, std::_Placeholder<3>, double, unsigned long, std::reference_wrapper<long double>)>, mpl_::bool_<false> >, boost::any, boost::any &, boost::any &>' requested here
boost::mpl::nested_for_each<TRS...>(_a, std::forward<Args>(args)...);
^
./../graph_filtering.hh:484:55: note: in instantiation of function template specialization 'graph_tool::detail::action_dispatch<std::_Bind<graph_tool::get_eigenvector (std::_Placeholder<1>, boost::typed_identity_property_map<unsigned long>, std::_Placeholder<2>, std::_Placeholder<3>, double, unsigned long, std::reference_wrapper<long double>)>, mpl_::bool_<false>, graph_tool::detail::all_graph_views, boost::mpl::v_item<graph_tool::UnityPropertyMap<int, boost::adj_list<unsigned long>::edge_descriptor>, graph_tool::writable_edge_scalar_properties, 0>, graph_tool::vertex_floating_properti
ERROR: Build failed with: exit status 1
e
failed
job_gcc_amd64 Test There is an unknown failure, please try again
  warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3.5/site-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3.5/site-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3.5/site-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")

ERROR: Build failed with: exit status 1
failed
job_gcc_py2_amd64 Test There is an unknown failure, please try again
Doctest summary
===============
941 tests
3 failures in tests
0 failures in setup code
0 failures in cleanup code
build finished with problems, 137 warnings.

ERROR: Build failed with: exit status 1
failed
job_clang_py2_amd64 Test There is an unknown failure, please try again
                                    ^
./../mpl_nested_loop.hh:195:9: note: in instantiation of member function 'boost::mpl::for_each_variadic<boost::mpl::inner_loop<boost::mpl::all_any_cast<graph_tool::detail::action_wrap<std::_Bind<graph_tool::get_eigenvector (std::_Placeholder<1>, boost::typed_identity_property_map<unsigned long>, std::_Placeholder<2>, std::_Placeholder<3>, double, unsigned long, std::reference_wrapper<long double>)>, mpl_::bool_<false> >, 3>, std::tuple<>, boost::mpl::v_item<graph_tool::UnityPropertyMap<int, boost::adj_list<unsigned long>::edge_descriptor>, graph_tool::writable_edge_scalar_properties, 0>, graph_tool::vertex_floating_properties>, std::tuple<boost::adj_list<unsigned long>, boost::filtered_graph<boost::adj_list<unsigned long>, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::adj_edge_index_property_map<unsigned long> > >, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::typed_identity_property_map<unsigned long> > > >, boost::reverse_graph<boost::adj_list<unsigned long>, const boost::adj_list<unsigned long> &>, boost::reverse_graph<boost::filtered_graph<boost::adj_list<unsigned long>, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::adj_edge_index_property_map<unsigned long> > >, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::typed_identity_property_map<unsigned long> > > >, const boost::filtered_graph<boost::adj_list<unsigned long>, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::adj_edge_index_property_map<unsigned long> > >, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::typed_identity_property_map<unsigned long> > > > &>, boost::UndirectedAdaptor<boost::adj_list<unsigned long> >, boost::UndirectedAdaptor<boost::filtered_graph<boost::adj_list<unsigned long>, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::adj_edge_index_property_map<unsigned long> > >, graph_tool::detail::MaskFilter<boost::unchecked_vector_property_map<unsigned char, boost::typed_identity_property_map<unsigned long> > > > > > >::operator()' requested here
for_each_variadic<inner_loop_t, tr_tuple>()(inner_loop_t(b));
^
./../graph_filtering.hh:463:25: note: in instantiation of function template specialization 'boost::mpl::nested_for_each<graph_tool::detail::all_graph_views, boost::mpl::v_item<graph_tool::UnityPropertyMap<int, boost::adj_list<unsigned long>::edge_descriptor>, graph_tool::writable_edge_scalar_properties, 0>, graph_tool::vertex_floating_properties, graph_tool::detail::action_wrap<std::_Bind<graph_tool::get_eigenvector (std::_Placeholder<1>, boost::typed_identity_property_map<unsigned long>, std::_Placeholder<2>, std::_Placeholder<3>, double, unsigned long, std::reference_wrapper<long double>)>, mpl_::bool_<false> >, boost::any, boost::any &, boost::any &>' requested here
boost::mpl::nested_for_each<TRS...>(_a, std::forward<Args>(args)...);
^
./../graph_filtering.hh:484:55: note: in instantiation of function template specialization 'graph_tool::detail::action_dispatch<std::_Bind<graph_tool::get_eigenvector (std::_Placeholder<1>, boost::typed_identity_property_map<unsigned long>, std::_Placeholder<2>, std::_Placeholder<3>, double, unsigned long, std::reference_wrapper<long double>)>, mpl_::
ERROR: Build failed with: exit status 1
b
failed
job_gcc_amd64_nosh Test There is an unknown failure, please try again
  warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3.5/site-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3.5/site-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")
/usr/lib/python3.5/site-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
warnings.warn("tight_layout : falling back to Agg renderer")

ERROR: Build failed with: exit status 1
failed
job_clang_amd64_nosh Test There is an unknown failure, please try again
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/lib/gitlab-runner/builds/a1f13b9e/5/count0/graph-tool/src/graph'
Makefile:412: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/lib/gitlab-runner/builds/a1f13b9e/5/count0/graph-tool/src'
Makefile:585: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/lib/gitlab-runner/builds/a1f13b9e/5/count0/graph-tool'
Makefile:472: recipe for target 'all' failed
make: *** [all] Error 2