Filter by partition
Posted: 21 May 2016 00:14
I'm trying to filter a graph by partition using the toolkit 0.9.1.
Running the example (https://github.com/gephi/gephi-toolkit- ... ering.java) the filter by partition does not work.
There is something wrong in the query parameters?
many thanx
Running the example (https://github.com/gephi/gephi-toolkit- ... ering.java) the filter by partition does not work.
Code: Select all
//Filter, keep partition 'Blogarama'. Build partition with 'source' column in the data
NodePartitionFilter partitionFilter = new NodePartitionFilter(graphModel.getNodeTable().getColumn("source"), appearanceModel);
partitionFilter.unselectAll();
partitionFilter.addPart("Blogarama");
Query query2 = filterController.createQuery(partitionFilter);
GraphView view2 = filterController.filter(query2);
graphModel.setVisibleView(view2); //Set the filter result as the visible view
many thanx