'Check whether sequence is contained in any of the paths (can
also be used to check whether this multi-path contains a path
to a particular node)
@param sequence: the sequence (or node ID)'

def __contains__(self, sequence):

    for p in self.paths:
        if (sequence in p):
            return 1
    return 0
