Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • graph-tool graph-tool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 49
    • Issues 49
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.

For questions about how to compile, install or use the library, please use instead the web forum at https://forum.skewed.de/c/graph-tool.


(If unsure, use the forum first.)


IMPORTANT: When opening new issues, please choose the BUG template from the drop-down menu, and fill out the required information.

  • Tiago Peixoto
  • graph-toolgraph-tool
  • Issues
  • #503
Closed
Open
Issue created Sep 12, 2018 by elohim reis@elohim

Assortativity with vertex property map

Hi,

I'm using the latest graph-tool version in Linux (Ubuntu 16.04) and Mac (High Sierra 10.13.4). I'm trying to calculate the assortativity of a network (gw) given certain vertex categories (prefixes), that is, a vertex property map (gw.vp.prefixes). The vertex property map is originally composed of letters, strings, and I tried to modify them to numbers but still doesn't work. I run the following:

assortativity_w = gt.assortativity(gw, gw.vp.prefixes)

and get the following error:

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-7-f548121efe30> in <module>()
----> 1 assortativity_w = gt.assortativity(gw, gw.vp.prefixes)

/usr/local/lib/python3.6/site-packages/graph_tool/correlations/__init__.py in assortativity(g, deg)
    115     """
    116     return libgraph_tool_correlations.\
--> 117            assortativity_coefficient(g._Graph__graph, _degree(g, deg))
    118 
    119 

RuntimeError: No static implementation was found for the desired routine. This is a graph_tool bug. :-( Please submit a bug report at http://graph-tool.skewed.de/issues. What follows is debug information.

Action: std::__1::__bind<graph_tool::get_assortativity_coefficient, std::__1::placeholders::__ph<1> const&, std::__1::placeholders::__ph<2> const&, std::__1::reference_wrapper<double>, std::__1::reference_wrapper<double> >

Arg 1: std::__1::reference_wrapper<boost::undirected_adaptor<boost::adj_list<unsigned long> > >

Arg 2: graph_tool::scalarS<boost::checked_vector_property_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, boost::typed_identity_property_map<unsigned long> > >

Any help? Thanks!

Assignee
Assign to
Time tracking