Package org.gephi.filters.spi

Examples of org.gephi.filters.spi.AttributableFilter


                nodeFilter.finish();
            }
           
            if (filter instanceof AttributableFilter && ((AttributableFilter) filter).getType()==AttributableFilter.Type.NODE && ((AttributableFilter) filter).init(hgraph)) {
                List<Node> nodeToRemove = new ArrayList<Node>();
                AttributableFilter attributableFilter = (AttributableFilter) filter;
                for (Node n : hgraph.getNodes().toArray()) {
                    if (attributableFilter.evaluate(hgraph, n)) {
                        nodeToRemove.add(n);
                    }
                }
                for (Node n : nodeToRemove) {
                    hgraph.removeNode(n);
                }
                attributableFilter.finish();
            }

            return hgraph;
        }
View Full Code Here

TOP

Related Classes of org.gephi.filters.spi.AttributableFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.