in order to do the face recognition for any network, I used to do the following:
mesh=Mesh.from_data(network.to_data())
mesh.halfedge=network.halfedge
network_find_faces(mesh, mesh.leaves())
Now I noticed mesh.leaves() and network.leaves() become empty after network_find_faces (my network had leaf edges originally). Is there a reason for that?