Class LemonExporter<V,​E>

  • Type Parameters:
    V - the graph vertex type
    E - the graph edge type
    All Implemented Interfaces:
    GraphExporter<V,​E>

    @Deprecated
    public class LemonExporter<V,​E>
    extends Object
    implements GraphExporter<V,​E>
    Deprecated.
    Use LemonExporter instead.
    Exports a graph into Lemon graph format (LGF).

    This is the custom graph format used in the Lemon graph library.

    Author:
    Dimitrios Michail
    • Field Detail

      • 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

      • LemonExporter

        public LemonExporter()
        Deprecated.
        Constructs a new exporter.
      • LemonExporter

        public LemonExporter​(ComponentNameProvider<V> vertexIDProvider)
        Deprecated.
        Constructs a new exporter with a given vertex ID provider.
        Parameters:
        vertexIDProvider - for generating vertex IDs. Must not be null.
    • Method Detail

      • exportGraph

        public void exportGraph​(Graph<V,​E> g,
                                Writer writer)
        Deprecated.
        Description copied from interface: GraphExporter
        Export a graph
        Specified by:
        exportGraph in interface GraphExporter<V,​E>
        Parameters:
        g - the graph to export
        writer - the output writer
      • isParameter

        public boolean isParameter​(LemonExporter.Parameter p)
        Deprecated.
        Return if a particular parameter of the exporter is enabled
        Parameters:
        p - the parameter
        Returns:
        true if the parameter is set, false otherwise
      • setParameter

        public void setParameter​(LemonExporter.Parameter p,
                                 boolean value)
        Deprecated.
        Set the value of a parameter of the exporter
        Parameters:
        p - the parameter
        value - the value to set
      • 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.