N - node value typeE - edge value typepublic interface GraphWriter<N,E>
void write(Graph<N,E> graph, File file) throws IOException
graph - graph to write, must not be nullfile - file to write to, must not be nullIOException - if an IO error occursvoid write(Graph<N,E> graph, OutputStream outputStream) throws IOException
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).