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
6 changes: 3 additions & 3 deletions stubs/networkx/networkx/generators/internet_as_graphs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AS_graph_generator:
t_c: float
def __init__(self, n, seed) -> None: ...
G: Incomplete
def t_graph(self) -> Graph[Incomplete]: ...
def t_graph(self) -> Graph[int]: ...
def add_edge(self, i, j, kind) -> None: ...
def choose_peer_pref_attach(self, node_list): ...
def choose_node_pref_attach(self, node_list): ...
Expand All @@ -40,7 +40,7 @@ class AS_graph_generator:
customers: Incomplete
providers: Incomplete
nodes: Incomplete
def generate(self) -> Graph[Incomplete]: ...
def generate(self) -> Graph[int]: ...

@_dispatchable
def random_internet_as_graph(n: int, seed=None) -> Graph[Incomplete]: ...
def random_internet_as_graph(n: int, seed=None) -> Graph[int]: ...
8 changes: 3 additions & 5 deletions stubs/networkx/networkx/generators/joint_degree_seq.pyi
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
from _typeshed import Incomplete
from collections.abc import Mapping, Sequence

from networkx.utils.backends import _dispatchable
from numpy.random import RandomState

from ..classes.digraph import DiGraph
from ..classes.graph import Graph

__all__ = ["is_valid_joint_degree", "is_valid_directed_joint_degree", "joint_degree_graph", "directed_joint_degree_graph"]

@_dispatchable
def is_valid_joint_degree(joint_degrees: Mapping[int, Mapping[int, int]]) -> bool: ...
@_dispatchable
def joint_degree_graph(
joint_degrees: Mapping[int, Mapping[int, int]], seed: int | RandomState | None = None
) -> Graph[Incomplete]: ...
def joint_degree_graph(joint_degrees: Mapping[int, Mapping[int, int]], seed: int | RandomState | None = None) -> Graph[int]: ...
@_dispatchable
def is_valid_directed_joint_degree(
in_degrees: Sequence[int], out_degrees: Sequence[int], nkk: Mapping[int, Mapping[int, int]]
Expand All @@ -24,4 +22,4 @@ def directed_joint_degree_graph(
out_degrees: Sequence[int],
nkk: Mapping[int, Mapping[int, int]],
seed: int | RandomState | None = None,
) -> Graph[Incomplete]: ...
) -> DiGraph[int]: ...
4 changes: 1 addition & 3 deletions stubs/networkx/networkx/generators/spectral_graph_forge.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from _typeshed import Incomplete

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

__all__ = ["spectral_graph_forge"]

@_dispatchable
def spectral_graph_forge(G: Graph[_Node], alpha: float, transformation: str = "identity", seed=None) -> Graph[Incomplete]: ...
def spectral_graph_forge(G: Graph[_Node], alpha: float, transformation: str = "identity", seed=None) -> Graph[int]: ...
4 changes: 1 addition & 3 deletions stubs/networkx/networkx/generators/sudoku.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from _typeshed import Incomplete

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

__all__ = ["sudoku_graph"]

@_dispatchable
def sudoku_graph(n: int = 3) -> Graph[Incomplete]: ...
def sudoku_graph(n: int = 3) -> Graph[int]: ...
Loading