Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Add assortativity #1508

@heliosdrm

Description

@heliosdrm

I would like LG to have a function to obtain the assortativity coefficient. I would be willing to contribute code myself to add that feature, if only for the "global" coefficients as defined in Newman's papers for directed and undirected graphs. So I would like to ask:

  • Taking into account that there was a frustrated attempt to do this in Assortativity #275, is there any reason besides that tests failed why this was closed and never resumed - in other words, a reason to refrain from submitting a new PR?
  • LG has a big file structure. Where would the code for assortativity belong in?
  • Any recommendation for writing the tests. I was planning to make a test for undirected graphs using Callaway's grown graph model, whose assortativity coefficient is formulated in Newman (2002) and could be tested for different values of the δ parameter; and a test for directed graphs based on some of the examples with given values in Newman (2003). Is that right? And where should I write the code for such tests?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions