Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

A question about class PathBuilder #2

Open
HPDell opened this issue Dec 23, 2017 · 1 comment
Open

A question about class PathBuilder #2

HPDell opened this issue Dec 23, 2017 · 1 comment

Comments

@HPDell
Copy link

HPDell commented Dec 23, 2017

This is the getPathsBetweenCollections function of class PathBuilder:

def getPathsBetweenCollections(self, sc1, sc2):
    trans1 = []
    trans2 = []
    paths = []
    n1 = len(sc1.states)
    n2 = len(sc2.states)
    num_paths = 0
    for i1 in range(n1):
        for i2 in range(n2):
            ps = self.getPaths(sc1.states[i1], sc2.states[i2])
            for path in ps:
                trans1.append((i1, num_paths))
                trans2.append((num_paths, i2))
                paths.append(path)
                num_paths += 1
    return (trans1, paths, trans2)

Why the variable num_paths don't need to be set to 0 when variable ps is changed?

@tjhunter
Copy link
Owner

tjhunter commented Jan 4, 2018

Hello, I have moved on from this research area and I do not support this repository anymore. Good luck with your current project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants