Shortest chain subject to side constraints | Synapse