mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Add graph attribute to networkx.Graph (#12505)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user