Package org.gephi.attribute.api

Examples of org.gephi.attribute.api.Column


    public void stronglyConnected(DirectedGraph hgraph, AttributeModel attributeModel) {
        count = 1;
        stronglyCount = 0;

        Column componentCol = initializeStronglyConnectedColumn(attributeModel);

        HashMap<Node, Integer> indicies = createIndiciesMap(hgraph);

        LinkedList<LinkedList<Node>> components = top_tarjans(hgraph, indicies);
View Full Code Here


        }

        //Set results in columns
        Table nodeTable = attributeModel.getNodeTable();
        Column clusteringCol = nodeTable.getColumn(CLUSTERING_COEFF);
        if (clusteringCol == null) {
            clusteringCol = nodeTable.addColumn(CLUSTERING_COEFF, "Clustering Coefficient", Double.class, new Double(0));
        }

        Column triCount = null;
        if (!isDirected) {
            triCount = nodeTable.getColumn("Triangles");
            if (triCount == null) {
                triCount = nodeTable.addColumn("Triangles", "Number of triangles", Integer.class, new Integer(0));
            }
View Full Code Here

        return resultValues;
    }

    private double bruteForce(Graph hgraph, AttributeModel attributeModel) {
        //The atrributes computed by the statistics
        Column clusteringColumn = initializeAttributeColunms(attributeModel);

        float totalCC = 0;

        hgraph.readLock();
View Full Code Here

        if (attributeModel == null) {
            return null;
        }
        Table nodeTable = attributeModel.getNodeTable();
        Column clusteringCol = nodeTable.getColumn("clustering");

        if (clusteringCol == null) {
            clusteringCol = nodeTable.addColumn("clustering", "Clustering Coefficient", Double.class, new Double(0));
        }
View Full Code Here

TOP

Related Classes of org.gephi.attribute.api.Column

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.