(self, graph: List[GenericNode[VertexName]])
DFS Initializer.

        :param graph: A list of nodes you wish to add to
        the graph.
DFS Initializer.
DFS Initializer .
def __init__(self, graph: List[GenericNode[VertexName]]) -> None:
        """DFS Initializer.

        :param graph: A list of nodes you wish to add to
        the graph.
        """
        self._graph = Graph[VertexName].build(graph)
def __init__ ( self , graph : List [ GenericNode [ VertexName ] ] ) -> None : self . _graph = Graph [ VertexName ] . build ( graph )