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
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:
Related
Bugs:
#876Ok, will go to github. But the problem is not solved by calling applyIntegerAlgorithm (wiht proper integer proeprty), I get the same error again.
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.