8000 Add missing methods in PyGraph and PyDiGraph stubs by IvanIsCoding · Pull Request #967 · Qiskit/rustworkx · GitHub
[go: up one dir, main page]

Skip to content

Add missing methods in PyGraph and PyDiGraph stubs #967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Add comments from review
  • Loading branch information
IvanIsCoding committed Jan 13, 2024
commit 4c62d13104d214adf9c048ff290a8819fc167564
4 changes: 2 additions & 2 deletions rustworkx/digraph.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class PyDiGraph(Generic[S, T]):
) -> dict[int, int]: ...
def contract_nodes(
self,
nodes: list[int],
nodes: Sequence[int],
obj: S,
/,
check_cycle: bool | None = ...,
Expand All @@ -70,7 +70,7 @@ class PyDiGraph(Generic[S, T]):
def edge_indices(self) -> EdgeIndices: ...
def edge_list(self) -> EdgeList: ...
def edges(self) -> list[T]: ...
def edge_subgraph(self, edge_list: list[tuple[int, int]], /) -> PyDiGraph[S, T]: ...
def edge_subgraph(self, edge_list: Sequence[tuple[int, int]], /) -> PyDiGraph[S, T]: ...
def extend_from_edge_list(
self: PyDiGraph[S | None, T | None], edge_list: Sequence[tuple[int, int]], /
) -> None: ...
Expand Down
4 changes: 2 additions & 2 deletions rustworkx/graph.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PyGraph(Generic[S, T]):
) -> dict[int, int]: ...
def contract_nodes(
self,
nodes: list[int],
nodes: Sequence[int],
obj: S,
/,
weight_combo_fn: Callable[[T, T], T] | None = ...,
Expand All @@ -68,7 +68,7 @@ class PyGraph(Generic[S, T]):
def edge_indices(self) -> EdgeIndices: ...
def edge_list(self) -> EdgeList: ...
def edges(self) -> list[T]: ...
def edge_subgraph(self, edge_list: list[tuple[int, int]], /) -> PyGraph[S, T]: ...
def edge_subgraph(self, edge_list: Sequence[tuple[int, int]], /) -> PyGraph[S, T]: ...
def extend_from_edge_list(
self: PyGraph[S | None, T | None], edge_list: Sequence[tuple[int, int]], /
) -> None: ...
Expand Down
0