Implement getBestEffortTopographicallySortedNodesByRow on AbstractDirectedGraph
Summary: This is required for D9847.
Test Plan: It works.
Reviewers: Blessed Reviewers, epriestley
Reviewed By: Blessed Reviewers, epriestley
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D9956