V - the graph vertex typeE - the graph edge typeMatrixExporter instead.@Deprecated public class MatrixExporter<V,E> extends Object implements GraphExporter<V,E>
The exporter supports three different formats, see MatrixExporter.Format.
MatrixExporter.Format| Modifier and Type | Class and Description |
|---|---|
static class |
MatrixExporter.Format
Deprecated.
Use
MatrixExporter.Format instead. |
| Constructor and Description |
|---|
MatrixExporter()
Deprecated.
Creates a new MatrixExporter with integer name provider for the vertex identifiers and
MatrixExporter.Format.SPARSE_ADJACENCY_MATRIX as 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportGraph(Graph<V,E> g,
Writer writer)
Deprecated.
Export a graph
|
MatrixExporter.Format |
getFormat()
Deprecated.
Get the format that the exporter is using.
|
void |
setFormat(MatrixExporter.Format format)
Deprecated.
Set the output format of the exporter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexportGraph, exportGraphpublic MatrixExporter()
MatrixExporter.Format.SPARSE_ADJACENCY_MATRIX as the default format.public MatrixExporter(MatrixExporter.Format format)
format - format to usepublic MatrixExporter(MatrixExporter.Format format, ComponentNameProvider<V> vertexIDProvider)
format - format to usevertexIDProvider - for generating vertex identifiers. Must not be null.public MatrixExporter.Format getFormat()
public void setFormat(MatrixExporter.Format format)
format - the format to usepublic void exportGraph(Graph<V,E> g, Writer writer) throws ExportException
GraphExporterexportGraph in interface GraphExporter<V,E>g - the graph to exportwriter - the output writerExportException - in case any error occursCopyright © 2017. All rights reserved.