gephitoolkit: MultiLevelLayout

Please use a mailing-list, see http://gephi.org/developers/
Post Reply
Dmitriy
Posts: 1
Joined: 29 Sep 2016 14:01

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