gephitoolkit: MultiLevelLayout
Posted: 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:
library version: 8.7
update:
this is my code:
all i get is the graph, layered with Random 1000 algo, as i see from MultilevelLayout source code (initAlgo method):
https://github.com/jldupont/gwt-gephi-t ... ayout.java
and then - nothing happens, algo stops...
Thank you!
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();
and then - nothing happens, algo stops...
Thank you!