public final class YGraphMLWriter extends Object implements GraphWriter<ShapeNode,PolyLineEdge>
Constructor and Description |
---|
YGraphMLWriter()
Create a new YGraphML writer.
|
Modifier and Type | Method and Description |
---|---|
void |
write(Graph<ShapeNode,PolyLineEdge> graph,
File file)
Write the specified graph to the specified file.
|
void |
write(Graph<ShapeNode,PolyLineEdge> graph,
OutputStream outputStream)
Write the specified graph to the specified output stream.
|
public void write(Graph<ShapeNode,PolyLineEdge> graph, File file) throws IOException
write
in interface GraphWriter<ShapeNode,PolyLineEdge>
graph
- graph to write, must not be nullfile
- file to write to, must not be nullIOException
- if an IO error occurspublic void write(Graph<ShapeNode,PolyLineEdge> graph, OutputStream outputStream) throws IOException
write
in interface GraphWriter<ShapeNode,PolyLineEdge>
graph
- graph to write, must not be nulloutputStream
- output stream to write to, must not be nullIOException
- if an IO error occursCopyright (c) 2008-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).