[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
Gephi forumsPlease post new questions on facebook group too (https://www.facebook.com/groups/gephi) 2016-09-29T14:14:34+01:00 https://forum-gephi.org/app.php/feed/topic/5584 2016-09-29T14:14:34+01:002016-09-29T14:14:34+01:00 https://forum-gephi.org/viewtopic.php?t=5584&p=13278#p13278 <![CDATA[gephitoolkit: MultiLevelLayout]]>
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:

 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:

        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:

        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!

Statistics:Posted by Dmitriy — 29 Sep 2016 14:14


]]>