GraphLab Project

graphlab.plugins.main.saveload.core
Interface GraphWriterInterface

All Known Subinterfaces:
GraphWriterExtension
All Known Implementing Classes:
LatexCAD, LatexWriter, Save, SaveImage, SaveMatrix, SaveSimpleGraph

public interface GraphWriterInterface

Author:
azin azadi

Method Summary
 java.lang.String getExtension()
          Retrieves the file extension for the file type.
 java.lang.String getName()
          Retrieves the name of the file type.
 void write(java.io.File file, GraphModel graph)
          Writes the graph to the file.
 

Method Detail

getName

java.lang.String getName()
Retrieves the name of the file type.

Returns:
the Name

getExtension

java.lang.String getExtension()
Retrieves the file extension for the file type. Example: "xml", "gr".

Returns:
the Extension

write

void write(java.io.File file,
           GraphModel graph)
           throws GraphIOException
Writes the graph to the file.

Parameters:
file - the file
graph - the graph
Throws:
GraphIOException - In the case of the writer error.

GraphLab Project