buildSpatialModelFromAdjacencyList
This is an utility method that builds a SpatialModel from an adjacency list represented as an array of String. Each row in data
describes an edge and consists of an array of the form [s0;s1;s2;...;sn]
where s0
and s1
are the (string representation) of the source and target of the edge, while [s2;...;sn]
represents the values on the edge that is converted to a MoonLightRecord via the provided RecordHandler.
Return
a SpatialModel.
Parameters
number of locations.
handler for edges data type.
adjacency list.
This is an utility method that builds a SpatialModel from an adjacency list represented as an array of doubles. Each row in data
describes an edge and consists of an array of the form [d0;d1;d2;...;dn]
where d0
and d1
are the (double representation) of the source and target of the edge, while [d2;...;dn]
represents the values on the edge that is converted to a MoonLightRecord via the provided RecordHandler.
Return
a SpatialModel.
Parameters
number of locations.
handler for edges data type.
adjacency list.