def __init__(self, graph: "Graph"):
        """
        Initialization.

        Arguments:
            graph (Graph): The graph the node list belongs to.
        """
        self._graph: Graph = graph
        """The graph the node list belongs to."""
        self._nodes: Dict[int, Node] = {}
        """Storage for the nodes of node list as a node index to node instance mapping."""
        self._node_name_map: Dict[str, Node] = {}
        """Dictionary that maps node names to node instances."""
def __init__ ( self , graph : "Graph" ) : self . _graph : Graph = graph self . _nodes : Dict [ int , Node ] = { } self . _node_name_map : Dict [ str , Node ] = { }
Initialization.

        Arguments:
            graph (Graph): The graph the node list belongs to.