(cls, graph_name)
return graph_class
Retrieves a class object of a specific graph.

        Args:
            graph_name (str): name of the graph to retrieve.

        Returns:
            Instance of Graph class object.

        Raises:
            KeyError: if the graph is not registered.
Retrieves a class object of a specific graph.
Retrieves a class object of a specific graph .
def get_graph(cls, graph_name):
        """Retrieves a class object of a specific graph.

        Args:
            graph_name (str): name of the graph to retrieve.

        Returns:
            Instance of Graph class object.

        Raises:
            KeyError: if the graph is not registered.
        """
        try:
            graph_class = cls._class_registry[graph_name.lower()]
        except KeyError:
            raise KeyError(f'No such graph type: {graph_name.lower()}')
        return graph_class
def get_graph ( cls , graph_name ) : try : graph_class = cls . _class_registry [ graph_name . lower ( ) ] except KeyError : raise KeyError ( f'No such graph type: {graph_name.lower()}' ) return graph_class