Package org.gephi.partition.api

Examples of org.gephi.partition.api.EdgePartition


            i++;
        }
    }

    public void transform(Partition partition) {
        EdgePartition edgePartition = (EdgePartition) partition;
        for (Part<Edge> part : edgePartition.getParts()) {
            Color color = map.get(part.getValue());
            if (color == null) {
                color = DEFAULT_COLOR;
            }
            part.setColor(color);
View Full Code Here


            NodePartition partition = PartitionFactory.createNodePartition(column);
            Estimator estimator = AttributeUtils.getDefault().isDynamicNumberColumn(column) ? model.getNumberEstimator() : model.getEstimator();
            PartitionFactory.buildNodePartition(partition, graph, timeInterval, estimator);
            return partition;
        } else {
            EdgePartition partition = PartitionFactory.createEdgePartition(column);
            Estimator estimator = AttributeUtils.getDefault().isDynamicNumberColumn(column) ? model.getNumberEstimator() : model.getEstimator();
            PartitionFactory.buildEdgePartition(partition, graph, timeInterval, estimator);
            return partition;
        }
    }
View Full Code Here

TOP

Related Classes of org.gephi.partition.api.EdgePartition

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.