IngoScholtes / pathpy

pathpy is an OpenSource python package for the modeling and analysis of pathways and temporal networks using higher-order and multi-order graphical models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

paths of length zero not added to network

VincenzoPerri opened this issue · comments

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