12 %> @param adj adjacency matrix of the network. Each nonzero entry corresponds to an arc. The value of the entry is the ID of the arc.

13 %> @param arcs matrix containing the upstream and downstream nodes of each arc. Each row corresponds to an arc. Column 1 contains the upstream node and column 2 the downstream. Can be generated from the adjacency matrix by \ref prepareNetwork

14 %> @param orig the origin node

15 %> @param dest the destination node

16 %> @param forbiddennodes nodes that cannot be included anymore, in order to generate simple paths.

17 %> @param forward if 0, arcs can be used in any direction. If not 0, arcs can only be used in the forward direction