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 booleanload(InterfaceIOOptions options, ProgressUpdater progress_bar)Loads data from the set of files or URLs specified byoptions.InterfaceAbstractGraphloadGraph()InterfaceAbstractGraphloadGraph(boolean unique_labels, boolean has_locations)Graph3DIntloadGraph3DInt()Graph3DIntloadGraph3DInt(boolean unique_labels)Methods inherited from class mgui.io.domestic.graphs.GraphFileLoader
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, loadGraph2DInt, loadGraphs, loadObjectMethods inherited from class mgui.io.FileLoader
getComplementIOType, getFile, getIOType, getOptions, getProgressMessage, getWriterComplement, load, load, loadObject, loadObject, loadObject, setFile, setOptions, setURL, toStringMethods 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:FileLoaderLoads 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:
loadin classGraphFileLoaderprogress_bar- An optional progress updater. Can benull.- Returns:
-
loadGraph
- Specified by:
loadGraphin classGraphFileLoader
-
loadGraph3DInt
-
loadGraph3DInt
- Overrides:
loadGraph3DIntin classGraphFileLoader
-