Optimal paths in graphs with stochastic or multidimensional weights | Synapse