Class DOTExporter<V,​E>

    • Field Detail

      • DEFAULT_GRAPH_ID

        public static final String DEFAULT_GRAPH_ID
        Deprecated.
        Default graph id used by the exporter.
        See Also:
        Constant Field Values
      • vertexIDProvider

        protected ComponentNameProvider<V> vertexIDProvider
        Deprecated.
        Provides an identifier for a vertex.
      • edgeIDProvider

        protected ComponentNameProvider<E> edgeIDProvider
        Deprecated.
        Provides an identifier for an edge.
    • Constructor Detail

      • DOTExporter

        public DOTExporter()
        Deprecated.
        Constructs a new DOTExporter object with an integer name provider for the vertex IDs and null providers for the vertex and edge labels.
      • DOTExporter

        public DOTExporter​(ComponentNameProvider<V> vertexIDProvider,
                           ComponentNameProvider<V> vertexLabelProvider,
                           ComponentNameProvider<E> edgeLabelProvider)
        Deprecated.
        Constructs a new DOTExporter object with the given ID and label providers.
        Parameters:
        vertexIDProvider - for generating vertex IDs. Must not be null.
        vertexLabelProvider - for generating vertex labels. If null, vertex labels will not be written to the file.
        edgeLabelProvider - for generating edge labels. If null, edge labels will not be written to the file.
      • DOTExporter

        public DOTExporter​(ComponentNameProvider<V> vertexIDProvider,
                           ComponentNameProvider<V> vertexLabelProvider,
                           ComponentNameProvider<E> edgeLabelProvider,
                           ComponentAttributeProvider<V> vertexAttributeProvider,
                           ComponentAttributeProvider<E> edgeAttributeProvider)
        Deprecated.
        Constructs a new DOTExporter object with the given ID, label, and attribute providers. Note that if a label provider conflicts with a label-supplying attribute provider, the label provider is given precedence.
        Parameters:
        vertexIDProvider - for generating vertex IDs. Must not be null.
        vertexLabelProvider - for generating vertex labels. If null, vertex labels will not be written to the file (unless an attribute provider is supplied which also supplies labels).
        edgeLabelProvider - for generating edge labels. If null, edge labels will not be written to the file.
        vertexAttributeProvider - for generating vertex attributes. If null, vertex attributes will not be written to the file.
        edgeAttributeProvider - for generating edge attributes. If null, edge attributes will not be written to the file.
      • DOTExporter

        public DOTExporter​(ComponentNameProvider<V> vertexIDProvider,
                           ComponentNameProvider<V> vertexLabelProvider,
                           ComponentNameProvider<E> edgeLabelProvider,
                           ComponentAttributeProvider<V> vertexAttributeProvider,
                           ComponentAttributeProvider<E> edgeAttributeProvider,
                           ComponentNameProvider<Graph<V,​E>> graphIDProvider)
        Deprecated.
        Constructs a new DOTExporter object with the given ID, label, attribute, and graph id providers. Note that if a label provider conflicts with a label-supplying attribute provider, the label provider is given precedence.
        Parameters:
        vertexIDProvider - for generating vertex IDs. Must not be null.
        vertexLabelProvider - for generating vertex labels. If null, vertex labels will not be written to the file (unless an attribute provider is supplied which also supplies labels).
        edgeLabelProvider - for generating edge labels. If null, edge labels will not be written to the file.
        vertexAttributeProvider - for generating vertex attributes. If null, vertex attributes will not be written to the file.
        edgeAttributeProvider - for generating edge attributes. If null, edge attributes will not be written to the file.
        graphIDProvider - for generating the graph ID. If null the graph is named DEFAULT_GRAPH_ID.
    • Method Detail

      • exportGraph

        public void exportGraph​(Graph<V,​E> g,
                                Writer writer)
        Deprecated.
        Exports a graph into a plain text file in DOT format.
        Specified by:
        exportGraph in interface GraphExporter<V,​E>
        Parameters:
        g - the graph to be exported
        writer - the writer to which the graph to be exported
      • removeGraphAttribute

        public void removeGraphAttribute​(String key)
        Deprecated.
        Clear a graph attribute.
        Parameters:
        key - the graph attribute key
      • putGraphAttribute

        public void putGraphAttribute​(String key,
                                      String value)
        Deprecated.
        Set a graph attribute.
        Parameters:
        key - the graph attribute key
        value - the graph attribute value
      • getVertexIDProvider

        public ComponentNameProvider<V> getVertexIDProvider()
        Deprecated.
        Get the vertex id provider
        Returns:
        the vertex id provider
      • setVertexIDProvider

        public void setVertexIDProvider​(ComponentNameProvider<V> vertexIDProvider)
        Deprecated.
        Set the vertex id provider
        Parameters:
        vertexIDProvider - the new vertex id provider. Must not be null.
      • getEdgeIDProvider

        public ComponentNameProvider<E> getEdgeIDProvider()
        Deprecated.
        Get the edge id provider
        Returns:
        The edge provider
      • setEdgeIDProvider

        public void setEdgeIDProvider​(ComponentNameProvider<E> edgeIDProvider)
        Deprecated.
        Set the edge id provider.
        Parameters:
        edgeIDProvider - the new edge id provider. Must not be null.