org.grinvin.io.graphs

Class Graph6Loader


public class Graph6Loader
extends java.lang.Object

Several static methods to load graph6 (.g6) files in GrInvIn

Method Summary

static void
readFile(GraphList list, File file)
Reads the entire file and stores all the graphs in a GraphInvariantListModel
static void
readSingleGraph(GraphBundle bundle, File file)
Only reads the first graph in the file and stores it in a GraphBundle.

Method Details

readFile

public static void readFile(GraphList list,
                            File file)
            throws FileNotFoundException,
                   IOException
Reads the entire file and stores all the graphs in a GraphInvariantListModel

readSingleGraph

public static void readSingleGraph(GraphBundle bundle,
                                   File file)
            throws FileNotFoundException,
                   IOException
Only reads the first graph in the file and stores it in a GraphBundle.