gephitoolkit: MultiLevelLayout

Please use a mailing-list, see http://gephi.org/developers/
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Dmitriy
Posts:1
Joined:29 Sep 2016 14:01
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
gephitoolkit: MultiLevelLayout

Post by Dmitriy » 29 Sep 2016 14:14

Greetings!

I need some example on MultiLevelLayout class usage in gephitoolkit, please.

I do not understand how to handle class constructor, and its coarseningStrategy parameter

previously, I used YifanHuLayout class:

Code: Select all

 YifanHuLayout layout = new YifanHuLayout(null, new StepDisplacement(1f));
        layout.setGraphModel(graphModel);
        layout.initAlgo();
        layout.resetPropertiesValues();
        layout.setOptimalDistance(200f);

library version: 8.7


update:

this is my code:

Code: Select all

        MaximalMatchingCoarsening mc = new MaximalMatchingCoarsening();
        
        MultiLevelLayout layout = new MultiLevelLayout(null,mc );
        
        layout.setGraphModel(graphModel);
        layout.initAlgo();
        layout.resetPropertiesValues();
            layout.goAlgo();

all i get is the graph, layered with Random 1000 algo, as i see from MultilevelLayout source code (initAlgo method):

Code: Select all

        Layout random = new RandomLayout(1000);
        random.setGraphModel(graphModel);
        random.initAlgo();
        random.goAlgo(); 
https://github.com/jldupont/gwt-gephi-t ... ayout.java

and then - nothing happens, algo stops...

Thank you!

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable