def METHOD_NAME(self) -> None:
    """Test an inverting permutation on a small path graph of size 8"""
    graph = rx.generators.path_graph(8)
    permutation = {i: 7 - i for i in range(8)}
    swapper = ApproximateTokenSwapper(graph)  # type: ApproximateTokenSwapper[int]
    out = list(swapper.map(permutation))
    util.swap_permutation([out], permutation)
    self.assertEqual({i: i for i in range(8)}, permutation)