Migrate https://github.com/clue/graph/pull/71 (refs https://github.com/clue/graph/issues/119)
Migrate graphp/graph#71 (refs graphp/graph#119)