Backport autoDiscover multi-graph mode.