Skip to content

igraph conversion misses binding #25

Description

@lmeyerov

In cell 15 of rawdata/forwardjs/twitter/ForwardJS%20Community%20Analysis.ipynb#

ig = g.bind(source='friend', destination='speaker').pandas2igraph(edges)
clusters = ig.community_infomap()
num_clusters = len(list(set(clusters.membership)))
print('#clusters', str(len(list(set(clusters.membership)))))
clusters.membership[:10]

As is, it works, returning many clusters.

However, if I remove .bind(...), everything gets put into one cluster, suggesting it didn't remember the bindings from earlier calls.

Activity

  1. thibaudh commented on Aug 10, 2015

    @thibaudh
    Contributor

    pandas2igraph needs source and destination bindings. Not sure what you would expect without them. I will add a warning if source/dest are unbound.

  2. lmeyerov commented on Aug 10, 2015

    @lmeyerov
    ContributorAuthor

    Cell 8 defines the binding and Cell 13 uses them... except they're lost somehow.

  3. lmeyerov commented on Aug 10, 2015

    @lmeyerov
    ContributorAuthor

    Let's sync on these tmw

  4. lmeyerov commented on Aug 10, 2015

    @lmeyerov
    ContributorAuthor

    Fixed, user error. Needed graphistry.pandas2igraph(..., directed=False)

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions