Would I have to modify the C igraph source code to add an option to the shortest.paths
argument: weights
that if weights=
some string other than 'weights', say 'new_weights', then compute the weight on the fly?
Python's NetworkX has this option, but igraph does not. If I'm wrong on this, please let me know.