org.jgrapht.ext
Class MatrixExporter<V,E>
- java.lang.Object
-
- org.jgrapht.ext.MatrixExporter<V,E>
-
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
- GraphExporter<V,E>
Deprecated.Useorg.jgrapht.io.MatrixExporterinstead.
@Deprecated public class MatrixExporter<V,E> extends java.lang.Object implements GraphExporter<V,E>
Exports a graph to a plain text matrix format, which can be processed by matrix manipulation software, such as MTJ or MATLAB.The exporter supports three different formats, see
MatrixExporter.Format.- See Also:
MatrixExporter.Format
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classMatrixExporter.FormatDeprecated.Useorg.jgrapht.io.MatrixExporter.Formatinstead.
-
Constructor Summary
Constructors Constructor and Description MatrixExporter()Deprecated.Creates a new MatrixExporter with integer name provider for the vertex identifiers andMatrixExporter.Format.SPARSE_ADJACENCY_MATRIXas the default format.MatrixExporter(MatrixExporter.Format format)Deprecated.Creates a new MatrixExporter with integer name provider for the vertex identifiers.MatrixExporter(MatrixExporter.Format format, ComponentNameProvider<V> vertexIDProvider)Deprecated.Creates a new MatrixExporter.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description voidexportGraph(Graph<V,E> g, java.io.Writer writer)Deprecated.Export a graphMatrixExporter.FormatgetFormat()Deprecated.Get the format that the exporter is using.voidsetFormat(MatrixExporter.Format format)Deprecated.Set the output format of the exporter-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.ext.GraphExporter
exportGraph, exportGraph
-
-
-
-
Constructor Detail
-
MatrixExporter
public MatrixExporter()
Deprecated.Creates a new MatrixExporter with integer name provider for the vertex identifiers andMatrixExporter.Format.SPARSE_ADJACENCY_MATRIXas the default format.
-
MatrixExporter
public MatrixExporter(MatrixExporter.Format format)
Deprecated.Creates a new MatrixExporter with integer name provider for the vertex identifiers.- Parameters:
format- format to use
-
MatrixExporter
public MatrixExporter(MatrixExporter.Format format, ComponentNameProvider<V> vertexIDProvider)
Deprecated.Creates a new MatrixExporter.- Parameters:
format- format to usevertexIDProvider- for generating vertex identifiers. Must not be null.
-
-
Method Detail
-
getFormat
public MatrixExporter.Format getFormat()
Deprecated.Get the format that the exporter is using.- Returns:
- the output format
-
setFormat
public void setFormat(MatrixExporter.Format format)
Deprecated.Set the output format of the exporter- Parameters:
format- the format to use
-
exportGraph
public void exportGraph(Graph<V,E> g, java.io.Writer writer) throws ExportException
Deprecated.Description copied from interface:GraphExporterExport a graph- Specified by:
exportGraphin interfaceGraphExporter<V,E>- Parameters:
g- the graph to exportwriter- the output writer- Throws:
ExportException- in case any error occurs
-
-
DataMelt 3.0 © DataMelt by jWork.ORG