Package stallone.graph.connectivity

Examples of stallone.graph.connectivity.IntStrongConnectivity


    }

    private void calculateComponents()
    {
        IIntGraph g = new MatrixIntGraph(T);
        IntStrongConnectivity connectivity = new IntStrongConnectivity(g);
        connectivity.perform();

        List<IIntArray> C = connectivity.getStrongComponents();
//        int[][] C = g.BFS_mult();

        IIntArray complengths = Ints.create.array(C.size());
        for (int i=0; i<complengths.size(); i++)
            complengths.set(i, C.get(i).size());
View Full Code Here


        return(new ListIntGraph(edges));
    }
   
    public IIntConnectivity connectivityChecker(IIntGraph g)
    {
        IIntConnectivity res = new IntStrongConnectivity(g);
        return(res);
    }
View Full Code Here

    }

    public List<IIntArray> connectedComponents(IDoubleArray P)
    {
        IIntGraph g = new MatrixIntGraph(P);
        IntStrongConnectivity connectivity = new IntStrongConnectivity(g);
        connectivity.perform();

        List<IIntArray> C = connectivity.getStrongComponents();
        return C;
    }
View Full Code Here

TOP

Related Classes of stallone.graph.connectivity.IntStrongConnectivity

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.