- java.lang.Object
-
- org.jgrapht.nio.BaseExporter<V,E>
-
- org.jgrapht.nio.csv.VisioExporter<V,E>
-
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
GraphExporter<V,E>
public class VisioExporter<V,E> extends BaseExporter<V,E> implements GraphExporter<V,E>
Exports a graph to a CSV format that can be imported into MS Visio.Tip: By default, the exported graph doesn't show link directions. To show link directions:
- Select All (Ctrl-A)
- Right Click the selected items
- Format/Line...
- Line ends: End: (choose an arrow)
- Author:
- Avner Linder
-
-
Field Summary
-
Fields inherited from class org.jgrapht.nio.BaseExporter
edgeAttributeProvider, edgeIdProvider, graphAttributeProvider, graphIdProvider, vertexAttributeProvider, vertexIdProvider
-
-
Constructor Summary
Constructors Constructor Description VisioExporter()
Creates a new VisioExporter.VisioExporter(java.util.function.Function<V,java.lang.String> vertexIdProvider)
Creates a new exporter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exportGraph(Graph<V,E> g, java.io.Writer writer)
Exports the specified graph into a Visio CSV file format.-
Methods inherited from class org.jgrapht.nio.BaseExporter
getEdgeAttribute, getEdgeAttributeProvider, getEdgeAttributes, getEdgeId, getEdgeIdProvider, getGraphAttribute, getGraphAttributeProvider, getGraphId, getGraphIdProvider, getVertexAttribute, getVertexAttributeProvider, getVertexAttributes, getVertexId, getVertexIdProvider, setEdgeAttributeProvider, setEdgeIdProvider, setGraphAttributeProvider, setGraphIdProvider, setVertexAttributeProvider, setVertexIdProvider
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.nio.GraphExporter
exportGraph, exportGraph
-
-
-
-
Constructor Detail
-
VisioExporter
public VisioExporter()
Creates a new VisioExporter.
-
VisioExporter
public VisioExporter(java.util.function.Function<V,java.lang.String> vertexIdProvider)
Creates a new exporter.- Parameters:
vertexIdProvider
- the vertex id provider to be used for naming the Visio shapes
-
-
Method Detail
-
exportGraph
public void exportGraph(Graph<V,E> g, java.io.Writer writer)
Exports the specified graph into a Visio CSV file format.- Specified by:
exportGraph
in interfaceGraphExporter<V,E>
- Parameters:
g
- the graph to be exported.writer
- the writer to which the graph to be exported.
-
-