Skip to content

Commit fa1e758

Browse files
authored
[networkx] Use concrete node types for the caveman, ring of cliques, windmill and LFR generators (#16661)
1 parent 797607e commit fa1e758

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎stubs/networkx/networkx/generators/community.pyi‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ __all__ = [
1919
]
2020

2121
@_dispatchable
22-
def caveman_graph(l: int, k: int) -> Graph[Incomplete]: ...
22+
def caveman_graph(l: int, k: int) -> Graph[int]: ...
2323
@_dispatchable
24-
def connected_caveman_graph(l: int, k: int) -> Graph[Incomplete]: ...
24+
def connected_caveman_graph(l: int, k: int) -> Graph[int]: ...
2525
@_dispatchable
26-
def relaxed_caveman_graph(l: int, k: int, p: float, seed=None) -> Graph[Incomplete]: ...
26+
def relaxed_caveman_graph(l: int, k: int, p: float, seed=None) -> Graph[int]: ...
2727
@_dispatchable
2828
def random_partition_graph(
2929
sizes: list[int], p_in: float, p_out: float, seed=None, directed: bool = False
@@ -37,9 +37,9 @@ def gaussian_random_partition_graph(
3737
n: int, s: float, v: float, p_in: float, p_out: float, directed: bool = False, seed=None
3838
) -> DiGraph[Incomplete]: ...
3939
@_dispatchable
40-
def ring_of_cliques(num_cliques: int, clique_size: int) -> Graph[Incomplete]: ...
40+
def ring_of_cliques(num_cliques: int, clique_size: int) -> Graph[int]: ...
4141
@_dispatchable
42-
def windmill_graph(n: int, k: int) -> Graph[Incomplete]: ...
42+
def windmill_graph(n: int, k: int) -> Graph[int]: ...
4343
@_dispatchable
4444
def stochastic_block_model(
4545
sizes: list[int],
@@ -64,4 +64,4 @@ def LFR_benchmark_graph(
6464
tol: float = 1e-07,
6565
max_iters: int = 500,
6666
seed=None,
67-
) -> Graph[Incomplete]: ...
67+
) -> Graph[int]: ...

0 commit comments

Comments
 (0)