pathpyG
pathpyG copied to clipboard
Bug in handling of `EdgeIndex.sparse_size` and `Data.num_nodes`
Turning a directed graph with isolated nodes into an undirected graph yields an error:
Minimal example
import pathpyG as pp
g = pp.Graph.from_edge_list([('a', 'b')], num_nodes=3)
g_u = g.to_undirected()
This is due to the fact that the function to_undirected does not properly set the sparse_size of the undirected EdgeIndex
Will be fixed in #201