D 2018-03-23T10:44:26.774 L VirtualRouting P c22f4645ee5e82326ecc4ce2102752b686bb9170 U sandro W 6612 back

Introduction

Previous versions of SpatiaLite traditionally supported a pure SQL routing module that was named VirtualNetwork.

Since version 5.0.0 a brand new routing module (more advanced and sophisticated) is available, that is called VirtualRouting.
The now obsolete VirtualNetwork is still supported by version 5.0.0 so as to not cause an abrupt break to already existing applications, but will be presumably discontinued in future versions.
Using VirtualRouting instead of VirtualNetwirk is warmly reccommended for any new development.

Theoretical foundations - an ultra-quick recall

All Routing algorithms (aka Shortest Path algorithms) are based on the mathematics of the Graph theory or to be more precise: on Weighted Graphs.
network
A topologically valid Network is a dataset that fulfills the following requirements:

Logical conclusions

Any topologically valid Network (irrespective of whether it is a Spatial or Logical type) is a valid Graph.
And a Network allowing the support (direct or indirect) of some appropriate cost value is a valid Weighted Graph, and can consequently support Routing algorithms. All Routing algotithms are intended to identify the Shortest Path solution connecting two Nodes in a weighted graph (aka Network).

Note: both terms Routing and Shortest Path can be easily misunderstood.
Due to historical reasons the most common application field for Routing algorithms is related to Road Networks, but many other kinds of Networks exist:

back Z 196e725c1546203d6edd77967dc8b2dd