N
- Node content typeE
- Edge content typepublic final class DGraphSerializerDot<N,E> extends Object implements Writer<ConcreteDGraph<N,E>>
This class defines the way for writing a graph to a text file.
Modifier and Type | Method and Description |
---|---|
static DGraphSerializerDot |
getInstance()
Return the singleton instance of this class.
|
static void |
register()
Register this class for writing .dot files.
|
void |
write(ConcreteDGraph<N,E> graph,
BufferedWriter file)
Write a graph to a output stream.
|
public static DGraphSerializerDot getInstance()
Return the singleton instance of this class.
public static void register()
Register this class for writing .dot files.
public void write(ConcreteDGraph<N,E> graph, BufferedWriter file) throws IOException
Write a graph to a output stream.
write
in interface Writer<ConcreteDGraph<N,E>>
graph
- a graph to writefile
- a fileIOException
- When an IOException occursCopyright © 2010–2016 The Galactic Organization. All rights reserved.