Quick fix for graph weight ambiguity