Class PajekGraphLoader

java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.graphs.GraphFileLoader
mgui.io.foreign.pajek.PajekGraphLoader
All Implemented Interfaces:
InterfaceIO, IconObject

public class PajekGraphLoader
extends GraphFileLoader
Loads a graph from the Pajek graph format (see http://pajek.imfm.si/doku.php).
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • PajekGraphLoader

      public PajekGraphLoader()
  • Method Details

    • loadGraph

      public InterfaceAbstractGraph loadGraph()
    • load

      public boolean load​(InterfaceIOOptions options, ProgressUpdater progress_bar)
      Description copied from class: FileLoader
      Loads data from the set of files or URLs specified by options. Loading is controlled by the specifications of options. If loaded object is of type PersistentObject, this method should also set the file loader and reference URL for the object.

      This method should also set the URL reference and writer and loader attributes to match this one and its complement.

      Overrides:
      load in class GraphFileLoader
      progress_bar - An optional progress updater. Can be null.
      Returns:
    • loadGraph

      public InterfaceAbstractGraph loadGraph​(boolean unique_labels, boolean has_locations)
      Specified by:
      loadGraph in class GraphFileLoader
    • loadGraph3DInt

      public Graph3DInt loadGraph3DInt()
    • loadGraph3DInt

      public Graph3DInt loadGraph3DInt​(boolean unique_labels)
      Overrides:
      loadGraph3DInt in class GraphFileLoader