from motile import TrackGraph
track_graph = TrackGraph(nx_graph = candidate_graph)
if one forgets to explicitly specify the frame_attribute, causes the is_hyperedge_nx_node method here to evaluate to True, producing an object with no edges.
Maybe a warning message can be printed whenever the self.frame_attribute is not found on the nodes, in order to trouble shoot and distinguish the hyper-edge scenario from just specifying the wrong frame_attribute while initializing the object.
While initializing a
TrackGraph
object,if one forgets to explicitly specify the
frame_attribute
, causes theis_hyperedge_nx_node
method here to evaluate toTrue
, producing an object with no edges.Maybe a warning message can be printed whenever the
self.frame_attribute
is not found on the nodes, in order to trouble shoot and distinguish the hyper-edge scenario from just specifying the wrongframe_attribute
while initializing the object.