If i have q query [start, end] in the graph. How to check whether:
the length of start to end can be arbitrarily negative length?