def is_trail(self, start, end):
        res = self.walk(start, end)
        return len(res) == len(set(res))
A trail is a walk in which all the edges are distinct.
dataset/ETHPy150Open christabor/MoAL/MOAL/data_structures/graphs/graphs.py/Graph.is_trail