public class GraphIO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GraphIO.GraphFileFormat |
static class |
GraphIO.GraphType |
public static Graph<? extends Edge> read(File f, GraphIO.GraphType type) throws IOException
IOException
public static Graph<Edge> readUndirected(File f) throws IOException
IOException
public static Graph<Edge> readUndirected(File f, Indexer<String> vertexIndexer) throws IOException
IOException
public static WeightedGraph<WeightedEdge> readWeighted(File f) throws IOException
IOException
public static WeightedGraph<WeightedEdge> readWeighted(File f, Indexer<String> vertexIndexer) throws IOException
IOException
public static WeightedGraph<WeightedEdge> readWeighted(File f, Indexer<String> vertexIndexer, double minWeight) throws IOException
IOException
public static Graph<Edge> readUndirectedFromWeighted(File f, Indexer<String> vertexIndexer, double minWeight) throws IOException
IOException
public static void writeUndirected(File f, Graph<? extends Edge> g, Indexer<String> vertexLabels) throws IOException
IOException
public static DirectedGraph<DirectedEdge> readDirected(File f) throws IOException
IOException
public static DirectedGraph<DirectedEdge> readDirected(File f, Indexer<String> vertexIndexer) throws IOException
IOException
public static DirectedMultigraph<String> readDirectedMultigraph(File f) throws IOException
IOException
public static DirectedMultigraph<String> readDirectedMultigraph(File f, Indexer<String> vertexIndexer) throws IOException
IOException
public static UndirectedMultigraph<String> readUndirectedMultigraph(File f) throws IOException
IOException
public static UndirectedMultigraph<String> readUndirectedMultigraph(File f, Indexer<String> vertexIndexer) throws IOException
IOException
public static <T> void writeUndirectedMultigraph(Multigraph<T,TypedEdge<T>> g, File f) throws IOException
IOException
public static <T> void writeUndirectedMultigraph(Multigraph<T,TypedEdge<T>> g, File f, Indexer<String> vertexLabels) throws IOException
IOException
public static void writeWeighted(File f, WeightedGraph<? extends WeightedEdge> g) throws IOException
IOException
public static void writeWeighted(File f, WeightedGraph<? extends WeightedEdge> g, Indexer<String> vertexLabels) throws IOException
IOException
Copyright © 2012. All Rights Reserved.