def METHOD_NAME(self):
    l = dict(nx.all_pairs_shortest_path_length(self.cycle))
    assert l[0] == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1}
    l = dict(nx.all_pairs_shortest_path_length(self.grid))
    assert l[1][16] == 6