Package mgui.io.foreign.pajek
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
-
Field Summary
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options
-
Constructor Summary
Constructors Constructor Description PajekGraphLoader()
-
Method Summary
Modifier and Type Method Description boolean
load(InterfaceIOOptions options, ProgressUpdater progress_bar)
Loads data from the set of files or URLs specified byoptions
.InterfaceAbstractGraph
loadGraph()
InterfaceAbstractGraph
loadGraph(boolean unique_labels, boolean has_locations)
Graph3DInt
loadGraph3DInt()
Graph3DInt
loadGraph3DInt(boolean unique_labels)
Methods inherited from class mgui.io.domestic.graphs.GraphFileLoader
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, loadGraph2DInt, loadGraphs, loadObject
Methods inherited from class mgui.io.FileLoader
getComplementIOType, getFile, getIOType, getOptions, getProgressMessage, getWriterComplement, load, load, loadObject, loadObject, loadObject, setFile, setOptions, setURL, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PajekGraphLoader
public PajekGraphLoader()
-
-
Method Details
-
loadGraph
-
load
Description copied from class:FileLoader
Loads data from the set of files or URLs specified byoptions
. Loading is controlled by the specifications ofoptions
. If loaded object is of typePersistentObject
, 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 classGraphFileLoader
progress_bar
- An optional progress updater. Can benull
.- Returns:
-
loadGraph
- Specified by:
loadGraph
in classGraphFileLoader
-
loadGraph3DInt
-
loadGraph3DInt
- Overrides:
loadGraph3DInt
in classGraphFileLoader
-