Giter Club home page Giter Club logo

fastconsensus's People

Contributors

adityasrepo avatar adityat avatar damienchallet avatar larsjeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fastconsensus's Issues

Question - type of algorithms available

Hi. I want to be sure which algorithms are implemented. I have read the paper and it seems that they were all appropriate algorithms for non-directed networks. So just to confirm, some of the algorithms (cmn, lmp, infomap implemented here) is available for weighted directed networks and search for hierarchical communities?
Thanks in advance.

FC-Louvain clusering fails for the provided example

$ python3 fast_consensus.py -f examples/karate_club.txt --alg louvain

multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "fast_consensus.py", line 97, in louvain_community_detection
    return cm.partition_at_level(cm.generate_dendrogram(networkx_graph, randomize=True, weight='weight'), 0)
AttributeError: module 'networkx.algorithms.community' has no attribute 'partition_at_level'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "fast_consensus.py", line 352, in <module>
    output = fast_consensus(G, algorithm=args.alg, n_p=args.parts, thresh=args.tau, delta=args.delta, procs=args.procs)
  File "fast_consensus.py", line 124, in fast_consensus
    communities_all = pool.map(louvain_community_detection, get_yielded_graph(graph, n_p))
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 260, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 608, in get
    raise self._value
AttributeError: module 'networkx.algorithms.community' has no attribute 'partition_at_level'

Add license

Thanks for sharing your code!

Could you provide a software license, e.g. Apache 2.0, to this repository so that it's legal to reuse your code?

Code deletion

Why did you decide to delete all relevant code in this project?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.