Add graph attribute to networkx.Graph (#12505)

This commit is contained in:
George Macon
2024-08-12 06:54:03 -05:00
committed by GitHub
parent a919d8dfe3
commit 0b6f15c2ff

View File

@@ -34,6 +34,8 @@ class Graph(Collection[_Node]):
edge_attr_dict_factory: ClassVar[_MapFactory] = ...
graph_attr_dict_factory: ClassVar[_MapFactory] = ...
graph: dict[str, Any]
def to_directed_class(self) -> type[DiGraph[_Node]]: ...
def to_undirected_class(self) -> type[Graph[_Node]]: ...
def __init__(self, incoming_graph_data: _Data[_Node] | None = None, **attr) -> None: ...