Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 5 additions & 7 deletions stubs/networkx/networkx/algorithms/core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,18 @@ __all__ = ["core_number", "k_core", "k_shell", "k_crust", "k_corona", "k_truss",
@_dispatchable
def core_number(G: Graph[_Node]) -> dict[Incomplete, Incomplete]: ...
@_dispatchable
def k_core(
G: Graph[_Node], k: int | None = None, core_number: Mapping[Incomplete, Incomplete] | None = None
) -> Graph[Incomplete]: ...
def k_core(G: Graph[_Node], k: int | None = None, core_number: Mapping[Incomplete, Incomplete] | None = None) -> Graph[_Node]: ...
@_dispatchable
def k_shell(
G: Graph[_Node], k: int | None = None, core_number: Mapping[Incomplete, Incomplete] | None = None
) -> Graph[Incomplete]: ...
) -> Graph[_Node]: ...
@_dispatchable
def k_crust(
G: Graph[_Node], k: int | None = None, core_number: Mapping[Incomplete, Incomplete] | None = None
) -> Graph[Incomplete]: ...
) -> Graph[_Node]: ...
@_dispatchable
def k_corona(G: Graph[_Node], k: int | None, core_number: Mapping[Incomplete, Incomplete] | None = None) -> Graph[Incomplete]: ...
def k_corona(G: Graph[_Node], k: int | None, core_number: Mapping[Incomplete, Incomplete] | None = None) -> Graph[_Node]: ...
@_dispatchable
def k_truss(G: Graph[_Node], k: int) -> Graph[Incomplete]: ...
def k_truss(G: Graph[_Node], k: int) -> Graph[_Node]: ...
@_dispatchable
def onion_layers(G: Graph[_Node]) -> dict[Incomplete, Incomplete]: ...
3 changes: 1 addition & 2 deletions stubs/networkx/networkx/algorithms/operators/unary.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from collections.abc import Hashable
from typing import TypeVar

Expand All @@ -10,6 +9,6 @@ _G = TypeVar("_G", bound=Graph[Hashable])
__all__ = ["complement", "reverse"]

@_dispatchable
def complement(G: Graph[_Node]) -> Graph[Incomplete]: ...
def complement(G: Graph[_Node]) -> Graph[_Node]: ...
@_dispatchable
def reverse(G: _G, copy: bool = True) -> _G: ...
8 changes: 4 additions & 4 deletions stubs/networkx/networkx/algorithms/tree/mst.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,19 @@ def maximum_spanning_edges(
@_dispatchable
def minimum_spanning_tree(
G: Graph[_Node], weight: str = "weight", algorithm: str = "kruskal", ignore_nan: bool = False
) -> Graph[Incomplete]: ...
) -> Graph[_Node]: ...
@_dispatchable
def partition_spanning_tree(
G: Graph[_Node], minimum: bool = True, weight: str = "weight", partition: str = "partition", ignore_nan: bool = False
) -> Graph[Incomplete]: ...
) -> Graph[_Node]: ...
@_dispatchable
def maximum_spanning_tree(
G: Graph[_Node], weight: str = "weight", algorithm: str = "kruskal", ignore_nan: bool = False
) -> Graph[Incomplete]: ...
) -> Graph[_Node]: ...
@_dispatchable
def random_spanning_tree(
G: Graph[_Node], weight: str | None = None, *, multiplicative=True, seed: int | RandomState | None = None
) -> Graph[Incomplete]: ...
) -> Graph[_Node]: ...

class SpanningTreeIterator:
@dataclass(order=True)
Expand Down
Loading