Package stallone.graph

Examples of stallone.graph.MatrixIntGraph


        return (true);
    }

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


*/
public class GraphFactory
{
    public IIntGraph intMatrixGraph(IDoubleArray M)
    {
        return(new MatrixIntGraph(M));
    }
View Full Code Here

        return (connectedComponents(P).size() == 1);
    }

    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.MatrixIntGraph

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.