Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion stubs/networkx/networkx/algorithms/operators/all.pyi
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
from _typeshed import Incomplete
from collections.abc import Iterable
from typing import Any, TypeVar

from networkx.classes.graph import Graph
from networkx.utils.backends import _dispatchable

__all__ = ["union_all", "compose_all", "disjoint_union_all", "intersection_all"]

_G = TypeVar("_G", bound=Graph[Any, Any, Any])

@_dispatchable
def union_all(graphs: Iterable[Incomplete], rename: Iterable[Incomplete] | None = ()) -> Graph[Incomplete]: ...
@_dispatchable
def disjoint_union_all(graphs: Iterable[Incomplete]) -> Graph[Incomplete]: ...
@_dispatchable
def compose_all(graphs: Iterable[Incomplete]) -> Graph[Incomplete]: ...
def compose_all(graphs: Iterable[_G]) -> _G: ...
@_dispatchable
def intersection_all(graphs: Iterable[Incomplete]) -> Graph[Incomplete]: ...
Loading