Menu

#876 No plugin named Louvain?

3.5.x
closed-works-for-me
nobody
None
5
2019-12-02
2018-10-02
No

I am using Tulip 5.2, OS X, running python on the command line (as well as in a script):

dataSet = tlp.getDefaultPluginParameters('Louvain', graph)
graph.applyAlgorithm('Louvain', dataSet)

I get an error:

Exception: No Tulip integer algorithm plugin named Louvain.

raised by the call to applyAlgorithm -- while the getDefaultPluginParameters indeed returns a dictionary with the right parameter entries ... This is confusing.

Any help appreciated. Cheers,
Guy

Related

Bugs: #876

Discussion

  • brenoust

    brenoust - 2018-10-03

    Hello Guy,

    Please try as much as possible to take the habit of posting your issues to
    the Tulip Github (https://github.com/Tulip-Dev/tulip/issues)
    The graph.applyAlgorithm() naming is a bit ambiguous, it refers to general
    algorithms such ac Voronoi, Equal value, etc.
    Louvain is an integer algorithm, so you should call this way:
    graph.applyIntegerAlgorithm('Louvain')

    This should solve your problem,
    Cheers,
    --
    Benjamin

    On Wed, 3 Oct 2018 at 01:30, Melançon Guy melancon@users.sourceforge.net
    wrote:


    Status: open
    Group: 3.5.x
    Created: Tue Oct 02, 2018 04:30 PM UTC by Melançon Guy
    Last Updated: Tue Oct 02, 2018 04:30 PM UTC
    Owner: nobody

    I am using Tulip 5.2, OS X, running python on the command line (as well as
    in a script):

    dataSet = tlp.getDefaultPluginParameters('Louvain', graph)
    graph.applyAlgorithm('Louvain', dataSet)

    I get an error:

    Exception: No Tulip integer algorithm plugin named Louvain.

    raised by the call to applyAlgorithm -- while the
    getDefaultPluginParameters indeed returns a dictionary with the right
    parameter entries ... This is confusing.

    Any help appreciated. Cheers,
    Guy


    Sent from sourceforge.net because tulipdev@labri.fr is subscribed to
    https://sourceforge.net/p/auber/bugs/

    To unsubscribe from further messages, a project admin can change settings
    at https://sourceforge.net/p/auber/admin/bugs/options. Or, if this is a
    mailing list, you can unsubscribe from the mailing list.

     

    Related

    Bugs: #876

  • Melançon Guy

    Melançon Guy - 2018-10-03

    Ok, will go to github. But the problem is not solved by calling applyIntegerAlgorithm (wiht proper integer proeprty), I get the same error again.

     
  • Patrick Mary

    Patrick Mary - 2019-12-02
    • status: open --> closed-works-for-me
     
  • Patrick Mary

    Patrick Mary - 2019-12-02

    As 'Louvain' is a Tulip::DoubleAlgorithm, that is it computes the values of a DoubleProperty, then a DoubleProperty is needed as an argument of the method call.
    So use
    graph.applyDoubleAlgorithm('Louvain', graph['viewMetric'], dataSet)
    instead.

     

Log in to post a comment.