ConnectedNodes.intersectsGraph fix bound

Compare against minimum instead of maximum to make sure that
segments whose left part is partially within the query range
are also included in the search.