[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •gephitoolkit: MultiLevelLayout
Page 1 of 1

gephitoolkit: MultiLevelLayout

Posted: 29 Sep 2016 14:14
by Dmitriy
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!