[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 •Edge Coloring
Page 1 of 1

Edge Coloring

Posted: 08 Jun 2017 12:22
by haripriya
Hi,

Can anyone tell me how to color the edges based upon its weight using gephi toolkit jar 0.9 ? I tried it like this..


Column col=graphModel.getEdgeTable().getColumn("weight");
Function centralityRanking2 = appearanceModel.getEdgeFunction(graph,col, RankingElementColorTransformer.class);
System.out.println(centralityRanking2);
System.out.println("centralityRanking2.."+centralityRanking2);
Partition color = centralityRanking2.getTransformer();
Palette palette = PaletteManager.getInstance().generatePalette(color.size());
color.setColors(palette.getColors());
appearanceController.transform(centralityRanking2);

But this is not working.. Can someone tell me whats wrong in this?