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

Toolkit - Edge Filtering

Posted: 30 Mar 2017 09:48
by raffaelecesarano
Hello, I'm trying to develop an algorithm with the toolkit and I need to delete all the edges that have the value "Function" in the column "kind".
I tried the following code:

Code: Select all

        FilterController filterController = Lookup.getDefault().lookup(FilterController.class);
        EdgePartitionFilter EdgePartitionFilter = new EdgePartitionFilter(graphModel.getEdgeTable().getColumn("kind"), appearanceModel);
        EdgePartitionFilter.unselectAll();
        EdgePartitionFilter.addPart("Function");
        Query query = filterController.createQuery(EdgePartitionFilter);
        GraphView view = filterController.filter(query);
        graphModel.setVisibleView(view);
                          
        graph = graphModel.getDirectedGraphVisible();
        System.out.println("Nodes: " + graph.getNodeCount() + " Edges: " + graph.getEdgeCount());
Unfortunately, it does not work because it does not delete the edges. I tried the version 0.9.1 and the 0.9.2 snapshot
Can someone help me please? I am a total newbie :D