public class GexfIO extends Object
Constructor and Description |
---|
GexfIO() |
Modifier and Type | Method and Description |
---|---|
<T,E extends TypedEdge<T>> |
write(Multigraph<T,E> g,
File f)
Writes the provided multigraph to the specified
gexf file with
all edge colors appearing the same. |
<T,E extends TypedEdge<T>> |
write(Multigraph<T,E> g,
File f,
Indexer<String> vertexLabels)
Writes the provided multigraph to the specified
gexf file, using
vertexLabels to name the vertices. |
<T,E extends TypedEdge<T>> |
write(Multigraph<T,E> g,
File f,
Map<T,Color> edgeColors)
Writes the provided multigraph to the specified
gexf file, using
edgeColors as a guide for how to display parallel edges of
different types. |
<T,E extends TypedEdge<T>> |
write(Multigraph<T,E> g,
File f,
Map<T,Color> edgeColors,
Indexer<String> vertexLabels)
Writes the provided multigraph to the specified
gexf file, using
edgeColors as a guide for how to display parallel edges of
different types, and vertexLabels to name the vertices. |
void |
write(WeightedGraph<? extends WeightedEdge> g,
File gexfFile)
Writes the
WeightedGraph to file in gexf format. |
void |
write(WeightedGraph<? extends WeightedEdge> g,
File gexfFile,
Indexer<String> vertexLabels)
Writes the
WeightedGraph to file in gexf format. |
public <T,E extends TypedEdge<T>> void write(Multigraph<T,E> g, File f) throws IOException
gexf
file with
all edge colors appearing the same.f
- the file where the gexf
graph will be written. Any existing file
contents will be overwrittenIOException
public <T,E extends TypedEdge<T>> void write(Multigraph<T,E> g, File f, Map<T,Color> edgeColors) throws IOException
gexf
file, using
edgeColors
as a guide for how to display parallel edges of
different types.f
- the file where the gexf
graph will be written. Any
existing file contents will be overwrittenedgeColor
- a mapping from an edge type to a color. Types that do
not have colors will be randomly assigned one and the edgeColors
map will be updated appropriately.IOException
public <T,E extends TypedEdge<T>> void write(Multigraph<T,E> g, File f, Indexer<String> vertexLabels) throws IOException
gexf
file, using
vertexLabels
to name the vertices.f
- the file where the gexf
graph will be written. Any
existing file contents will be overwrittenvertexLabels
- a mapping from vertex value to a string name for the
vertexIOException
public <T,E extends TypedEdge<T>> void write(Multigraph<T,E> g, File f, Map<T,Color> edgeColors, Indexer<String> vertexLabels) throws IOException
gexf
file, using
edgeColors
as a guide for how to display parallel edges of
different types, and vertexLabels
to name the vertices.f
- the file where the gexf
graph will be written. Any
existing file contents will be overwrittenedgeColor
- a mapping from an edge type to a color. Types that do
not have colors will be randomly assigned one and the edgeColors
map will be updated appropriately.vertexLabels
- a mapping from vertex value to a string name for the
vertexIOException
public void write(WeightedGraph<? extends WeightedEdge> g, File gexfFile) throws IOException
WeightedGraph
to file in gexf
format.IOException
public void write(WeightedGraph<? extends WeightedEdge> g, File gexfFile, Indexer<String> vertexLabels) throws IOException
WeightedGraph
to file in gexf
format.IOException
Copyright © 2012. All Rights Reserved.