Class BaseExporter<V,E>
java.lang.Object
org.jgrapht.nio.BaseExporter<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- Direct Known Subclasses:
CSVExporter, DIMACSExporter, DOTExporter, GEXFExporter, GmlExporter, GraphMLExporter, JSONExporter, LemonExporter, MatrixExporter, VisioExporter
Base implementation for an exporter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAn edge attribute providerAn edge id providerA graph attribute providerA graph id providerA vertex attribute providerA vertex id provider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEdgeAttribute(E e, String key) Get an optional of an edge attributeGet the edge attribute providerGet edge attributesGet an optional of the edge idGet the edge id providergetGraphAttribute(String key) Get an optional of a graph attributeGet the graph attribute provider.Get the graph id if presentGet the graph id provider.getVertexAttribute(V v, String key) Get an optional of a vertex attributeGet the vertex attribute providerGet vertex attributesprotected StringgetVertexId(V v) Get the vertex idGet vertex id provider.voidSet the edge attribute provider.voidsetEdgeIdProvider(Function<E, String> edgeIdProvider) Set edge id providervoidsetGraphAttributeProvider(Supplier<Map<String, Attribute>> graphAttributeProvider) Set the graph attribute provider.voidsetGraphIdProvider(Supplier<String> graphIdProvider) Set the graph id provider.voidSet the vertex attribute providervoidsetVertexIdProvider(Function<V, String> vertexIdProvider) Set the vertex id provider
-
Field Details
-
graphIdProvider
-
graphAttributeProvider
-
vertexIdProvider
-
vertexAttributeProvider
-
edgeIdProvider
-
edgeAttributeProvider
-
-
Constructor Details
-
BaseExporter
-
-
Method Details
-
getGraphIdProvider
-
setGraphIdProvider
-
getGraphAttributeProvider
-
setGraphAttributeProvider
-
getVertexIdProvider
-
setVertexIdProvider
-
getVertexAttributeProvider
-
setVertexAttributeProvider
-
getEdgeIdProvider
-
setEdgeIdProvider
-
getEdgeAttributeProvider
-
setEdgeAttributeProvider
-
getGraphId
-
getVertexId
-
getEdgeId
-
getVertexAttributes
-
getVertexAttribute
-
getEdgeAttributes
-
getEdgeAttribute
-
getGraphAttribute
-