The following Matlab project contains the source code and Matlab examples used for 2d random paths generator integrating leg's contraints. Generates random 2D-paths between start and finish nodes according to densities distribution given by matrix C with leg's contrainsts defined by the adjacency matrix I.