SEMpath function

Search for directed or shortest paths between pairs of source-sink nodes