Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paths of length zero not added to network #26

Open
VincenzoPerri opened this issue Feb 10, 2020 · 0 comments
Open

paths of length zero not added to network #26

VincenzoPerri opened this issue Feb 10, 2020 · 0 comments

Comments

@VincenzoPerri
Copy link

Adding paths of length zero to a path object, e.g:

p = pp.Paths()
for i in range(10):
    p.add_path(tuple([i]))

When then generate a network path:

n = pp.Network.from_paths(p)

we get an empty network instead of one of isolated nodes:

n.nodes
defaultdict(dict, {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant