attempting to make comparedTo in titangraph asynchronous