ImmutableGraphModel

public class ImmutableGraphModel<T> implements SpatialModel<E>

Immutable version of the GraphModel class. This is required (or advisable) in order to support future versions of the algorithms allowing any of the followings: - parallel monitoring of different properties - multi-threaded monitoring of a property - online monitoring

Constructors

Link copied to clipboard
public void ImmutableGraphModel(int size)

Functions

Link copied to clipboard
public ImmutableGraphModel<T> add(int src, T value, int trg)
Link copied to clipboard
public static SpatialModel<MoonLightRecord> buildSpatialModelFromAdjacencyList(int locations, RecordHandler edgeRecordHandler, Array<Array<double>> data)
This is an utility method that builds a SpatialModel from an adjacency list represented as an array of doubles.
public static SpatialModel<MoonLightRecord> buildSpatialModelFromAdjacencyList(int locations, RecordHandler edgeRecordHandler, Array<Array<String>> data)
This is an utility method that builds a SpatialModel from an adjacency list represented as an array of String.
Link copied to clipboard
public static SpatialModel<MoonLightRecord> buildSpatialModelFromAdjacencyMatrix(int locations, RecordHandler edgeRecordHandler, Array<Array<Array<double>>> objects)
public static SpatialModel<MoonLightRecord> buildSpatialModelFromAdjacencyMatrix(int locations, RecordHandler edgeRecordHandler, Array<Array<Array<String>>> data)
This is an utility method that builds a SpatialModel from an adjacency matrix represented as an array of doubles.
Link copied to clipboard
public T get(int source, int target)
Returns the value of the edge connecting src to trg.
Link copied to clipboard
public static Boolean isFull(Array<double> array)
public static Boolean isFull(Array<String> array)
Link copied to clipboard
public List<Pair<Integer, T>> next(int location)
Returns the list of exiting edges from l.
Link copied to clipboard
public List<Pair<Integer, T>> previous(int location)
Returns the list of incoming edges in l.
Link copied to clipboard
public ImmutableGraphModel<T> remove(int src, int trg)
Link copied to clipboard
public int size()