Skip to content

paths of length zero not added to network #26

@VincenzoPerri

Description

@VincenzoPerri

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, {})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions