Modifier and Type | Method and Description |
---|---|
DirectedGraph<DirectedEdge> |
readDirectedGraph(File dotFile) |
DirectedMultigraph |
readDirectedMultigraph(File dotFile) |
Graph |
readGraph(File dotFile) |
<E extends DirectedEdge> |
writeDirectedGraph(DirectedGraph<E> g,
File f) |
<T,E extends DirectedTypedEdge<T>> |
writeDirectedMultigraph(Multigraph<T,E> g,
File f)
Writes the provided multigraph to the specified DOT file, using random
colors to visualize each edge type.
|
<T,E extends DirectedTypedEdge<T>> |
writeDirectedMultigraph(Multigraph<T,E> g,
File f,
Map<T,Color> edgeColors) |
<E extends Edge> |
writeUndirectedGraph(Graph<E> g,
File f) |
<E extends Edge> |
writeUndirectedGraph(Graph<E> g,
File f,
Indexer<String> vertexLabels) |
<T,E extends TypedEdge<T>> |
writeUndirectedMultigraph(Multigraph<T,E> g,
File f)
Writes the provided multigraph to the specified DOT file, using random
colors to visualize each edge type.
|
<T,E extends TypedEdge<T>> |
writeUndirectedMultigraph(Multigraph<T,E> g,
File f,
Map<T,Color> edgeColors)
Writes the provided multigraph to the specified DOT file, using
edgeColors as a guide for how to display parallel edges of different
types. |
<T,E extends TypedEdge<T>> |
writeUndirectedMultigraph(Multigraph<T,E> g,
File f,
Map<T,Color> edgeColors,
Indexer<String> vertexLabels)
Writes the provided multigraph to the specified DOT file, using
edgeColors as a guide for how to display parallel edges of different
types. |
<T,E extends TypedEdge<T>> |
writeUndirectedMultigraph(Multigraph<T,E> g,
File f,
Map<T,Color> edgeColors,
MultiMap<Integer,String> vertexMetadata)
The internal method that writes the undirect multigraph according to all
various visualation configuration properties
|
public DirectedGraph<DirectedEdge> readDirectedGraph(File dotFile)
public DirectedMultigraph readDirectedMultigraph(File dotFile)
public <E extends Edge> void writeUndirectedGraph(Graph<E> g, File f) throws IOException
IOException
public <E extends Edge> void writeUndirectedGraph(Graph<E> g, File f, Indexer<String> vertexLabels) throws IOException
IOException
public <E extends DirectedEdge> void writeDirectedGraph(DirectedGraph<E> g, File f) throws IOException
IOException
public <T,E extends TypedEdge<T>> void writeUndirectedMultigraph(Multigraph<T,E> g, File f) throws IOException
f
- the file where the DOT graph will be written. Any existing file
contents will be overwrittenIOException
public <T,E extends TypedEdge<T>> void writeUndirectedMultigraph(Multigraph<T,E> g, File f, Map<T,Color> edgeColors) throws IOException
edgeColors
as a guide for how to display parallel edges of different
types.f
- the file where the DOT 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 writeUndirectedMultigraph(Multigraph<T,E> g, File f, Map<T,Color> edgeColors, Indexer<String> vertexLabels) throws IOException
edgeColors
as a guide for how to display parallel edges of different
types.f
- the file where the DOT 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 writeUndirectedMultigraph(Multigraph<T,E> g, File f, Map<T,Color> edgeColors, MultiMap<Integer,String> vertexMetadata) throws IOException
useLabels
- whether to use vertexLabels
in naming the
vertices. If false
, vertices are labeled by numberIOException
public <T,E extends DirectedTypedEdge<T>> void writeDirectedMultigraph(Multigraph<T,E> g, File f) throws IOException
f
- the file where the DOT graph will be written. Any existing file
contents will be overwrittenIOException
public <T,E extends DirectedTypedEdge<T>> void writeDirectedMultigraph(Multigraph<T,E> g, File f, Map<T,Color> edgeColors) throws IOException
IOException
Copyright © 2012. All Rights Reserved.