higra / Higra

Hierarchical Graph Analysis
Other
97 stars 20 forks source link

Unable to create an empty Tree #250

Closed josselin-lefevre-tfs closed 1 year ago

josselin-lefevre-tfs commented 1 year ago

Hi,

I am unable to create an empty Tree despite the fact that the constructor seems to exist on the C++ side:

https://github.com/higra/Higra/blob/3e0d566becadc86d9244ed2e67ffc35a041ba0ec/include/higra/structure/tree_graph.hpp#L107-L109

The code below throws a segmentation fault.


import higra as hg

t = hg.Tree([])

This bug was reproduced using the version 0.6.5.