Package edu.uci.ics.jung.io

Examples of edu.uci.ics.jung.io.PajekNetReader


     * "samples/datasetsgraph/simple.net"
     * @return A sample undirected graph
     */
    public static Graph getGraph() throws IOException
    {
        PajekNetReader pnr = new PajekNetReader(FactoryUtils.instantiateFactory(Object.class));
        Graph g = new UndirectedSparseGraph();
       
        pnr.load("src/main/resources/datasets/simple.net", g);
        return g;
    }
View Full Code Here

TOP

Related Classes of edu.uci.ics.jung.io.PajekNetReader

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.