(self)
Creates an empty Paths object
Creates an empty Paths object
Creates an empty Paths object
def __init__(self):
        """
        Creates an empty Paths object
        """

        ## A dictionary of paths that has the following structure:
        ## - paths[k] is a dictionary containing all paths of length k, indexed by a path tuple p = (u,v,w,...)
        ## - for each tuple p of length k, paths[k][p] contains a tuple (i,j) where i refers to the number 
        ##       of times p occurs as a subpath of a longer path, and j refers to the number of times p
        ##       occurs as a *real* or *longest* path (i.e. not being a subpath of a longer path)
        self.paths = _co.defaultdict( lambda: _co.defaultdict( lambda: _np.array([0,0]) ))

        ## The character used to separate nodes on paths
        self.separator = ','
def __init__ ( self ) : ## A dictionary of paths that has the following structure: ## - paths[k] is a dictionary containing all paths of length k, indexed by a path tuple p = (u,v,w,...) ## - for each tuple p of length k, paths[k][p] contains a tuple (i,j) where i refers to the number  ##       of times p occurs as a subpath of a longer path, and j refers to the number of times p ##       occurs as a *real* or *longest* path (i.e. not being a subpath of a longer path) self . paths = _co . defaultdict ( lambda : _co . defaultdict ( lambda : _np . array ( [ 0 , 0 ] ) ) ) ## The character used to separate nodes on paths self . separator = ','