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>
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
ConstructorDescriptionCreates a new VisioExporter.VisioExporter
(Function<V, String> vertexIdProvider) Creates a new exporter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
exportGraph
(Graph<V, E> g, 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 Details
-
VisioExporter
public VisioExporter()Creates a new VisioExporter. -
VisioExporter
Creates a new exporter.- Parameters:
vertexIdProvider
- the vertex id provider to be used for naming the Visio shapes
-
-
Method Details
-
exportGraph
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.
-