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
IOExceptionpublic static Graph<Edge> readUndirected(File f) throws IOException
IOExceptionpublic static Graph<Edge> readUndirected(File f, Indexer<String> vertexIndexer) throws IOException
IOExceptionpublic static WeightedGraph<WeightedEdge> readWeighted(File f) throws IOException
IOExceptionpublic static WeightedGraph<WeightedEdge> readWeighted(File f, Indexer<String> vertexIndexer) throws IOException
IOExceptionpublic static WeightedGraph<WeightedEdge> readWeighted(File f, Indexer<String> vertexIndexer, double minWeight) throws IOException
IOExceptionpublic static Graph<Edge> readUndirectedFromWeighted(File f, Indexer<String> vertexIndexer, double minWeight) throws IOException
IOExceptionpublic static void writeUndirected(File f, Graph<? extends Edge> g, Indexer<String> vertexLabels) throws IOException
IOExceptionpublic static DirectedGraph<DirectedEdge> readDirected(File f) throws IOException
IOExceptionpublic static DirectedGraph<DirectedEdge> readDirected(File f, Indexer<String> vertexIndexer) throws IOException
IOExceptionpublic static DirectedMultigraph<String> readDirectedMultigraph(File f) throws IOException
IOExceptionpublic static DirectedMultigraph<String> readDirectedMultigraph(File f, Indexer<String> vertexIndexer) throws IOException
IOExceptionpublic static UndirectedMultigraph<String> readUndirectedMultigraph(File f) throws IOException
IOExceptionpublic static UndirectedMultigraph<String> readUndirectedMultigraph(File f, Indexer<String> vertexIndexer) throws IOException
IOExceptionpublic static <T> void writeUndirectedMultigraph(Multigraph<T,TypedEdge<T>> g, File f) throws IOException
IOExceptionpublic static <T> void writeUndirectedMultigraph(Multigraph<T,TypedEdge<T>> g, File f, Indexer<String> vertexLabels) throws IOException
IOExceptionpublic static void writeWeighted(File f, WeightedGraph<? extends WeightedEdge> g) throws IOException
IOExceptionpublic static void writeWeighted(File f, WeightedGraph<? extends WeightedEdge> g, Indexer<String> vertexLabels) throws IOException
IOExceptionCopyright © 2012. All Rights Reserved.