Add faster graph_tool impl if needed.