def neighbors(self) -> List['Node']:
        """
        The list of neighbors of the node.
        """
        self._load_neighbors()
        return [edge.source if edge.source != self else edge.target
                for edge in self._neighbors.values()]
def neighbors ( self ) -> List [ 'Node' ] : self . _load_neighbors ( ) return [ edge . source if edge . source != self else edge . target for edge in self . _neighbors . values ( ) ]
The list of neighbors of the node.