def __init__(self, *args: Union[Node, Edge], uid: Optional[str] = None, **kwargs: Any) -> None: # initializing the parent classes Node.__init__(self, uid, **kwargs) Path.__init__(self, *args, uid=uid, **kwargs)
def __init__(self, *args: Union[Node, Edge], uid: Optional[str] = None, **kwargs: Any) -> None: # initializing the parent classes Node.__init__(self, uid, **kwargs) Path.__init__(self, *args, uid=uid, **kwargs) self['label'] = '-'.join([n.uid for n in self.nodes])
def __init__(self, *node: Union[str, PathPyObject], uid: Optional[str] = None, **kwargs: Any) -> None: """Initialize the node object.""" # initializing the parent classes kwargs.pop('directed', None) kwargs.pop('ordered', None) Node.__init__(self, *node, uid=uid, **kwargs) TemporalPathPyObject.__init__(self, uid=self.uid, **kwargs)