org.grinvin.io.graphs

Class GraphLoader


public class GraphLoader
extends java.lang.Object

Loads a graph.xml-section from an input stream.

Method Summary

static void
load(Graph graph, Element element)
static void
load(Graph graph, InputStream input)
Load the graph from the input stream.

Method Details

load

public static void load(Graph graph,
                        Element element)
            throws IOException

load

public static void load(Graph graph,
                        InputStream input)
            throws IOException
Load the graph from the input stream. After the call the input stream should no longer be used.