graph service: allow loading in memory only one direction of the graph
As per title, in order to reduce memory footprint for specific use cases.
This would also imply some decent failure mode for the API, which won't be able to support one or the other direction when it hasn't been loaded.
Migrated from T2983 (view on Phabricator)