Package org.gephi.filters.spi

Examples of org.gephi.filters.spi.AttributableFilter.evaluate()


           
            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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.