D 2018-03-22T20:49:44.740 L VirtualRouting P ca0e52bba6eefb7fdde271847dcf518d219c5efd U sandro W 5216 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 now available, that is named VirtualRouting.
The nowadays obsolete VirtualNetwork still continues to be supported by version 5.0.0 so to not cause an abrupt break to already existing applications, but will be presumably suppressed in future versions.
Using VirtualRouting instead of VirtualNetwirk is warmly reccommended for any new development.

Teoretical foundations - an ultra-quick recall

All Routing algorithms (aka Shortest Path algorithms) are based on the mathematics of the Graph theory and more precisely on Weighted Graphs.
network
A topologically valid Network is a dataset fullfilling the following requirements:

Corollary

Any topologically valid Network (irrespectively if it's of the Spatial or Logical type) is a valid Graph.
And a Network allowing to support (directly or indirectly) some appropriate cost value is a valid Weighted Graph, and can consequently support Routing algorithms.

back Z 94b721bc12557199ca1e32b6559b45f2