Commit Graph

27 Commits

Author SHA1 Message Date
Avasam
dde13fb91d Enable Ruff PGH rules (#13304) 2024-12-26 21:35:34 +00:00
Danny Yang
1be2c08869 Update networkx stubs for 3.4.2 (#13001) 2024-11-13 20:03:01 -08:00
Ali Hamdan
a870a4e63a Remove numpy pins from several stubs (#12993) 2024-11-11 17:47:11 +01:00
Sebastian Rittau
ebdd2c528d Update mypy to 1.12.0 (#12859) 2024-10-19 16:45:38 +01:00
github-actions[bot]
d7e6cb8e1a Bump networkx to 3.3 (#11727) 2024-10-08 10:44:50 +02:00
Kanishk Pachauri
eb7df6d118 fix: weight parameter type for networkx.algorithms.shortest_paths (#12663) 2024-09-17 21:37:51 +02:00
Niklas Rosenstein
7a2807af4e Fix networkx DiDegreeView.__call__() can return int (#12472)
Fix networkx `DiDegreeView.__call__()`

`DiDegreeView.__call__()` can return an integer if a single node is specified, as is also documented in the docstrings of the method:

89718e0514/networkx/classes/digraph.py (L1198-L1199)

Implementation:

89718e0514/networkx/classes/reportviews.py (L436-L437)
2024-09-06 15:07:25 -07:00
sobolevn
30a20398c9 Pin numpy in various stubs (#12554) 2024-08-19 15:38:23 +03:00
George Macon
0b6f15c2ff Add graph attribute to networkx.Graph (#12505) 2024-08-12 13:54:03 +02:00
Ali Hamdan
9045c67ae0 networkx: Fix stubtest errors and remove numpy version pin (#12477) 2024-08-10 15:46:51 -07:00
sobolevn
6f248dfa37 Bump mypy to 1.11.1 (#12463) 2024-08-04 23:19:28 -07:00
Benjamin Kirkbride
d498fe148e add stubs for networx.has_path (#12252) 2024-07-02 10:14:56 +02:00
Sebastian Rittau
212af7a526 Pin various stubs to numpy to < 2 (#12152)
Fixes #12146
2024-06-17 15:50:22 +02:00
Peter
3dc74ddf07 [networks] Fix some functions requiring DiGraph objects (#12066) 2024-05-31 00:34:34 +02:00
Ryan Morshead
e7daedd6ab add networkx.topological_generations (#11927) 2024-05-17 08:52:26 +02:00
Sebastian Rittau
e2e14d1cc1 [networkx] Fix incremental_closeness_centrality argument type (#11828) 2024-04-24 17:00:56 +02:00
Daniel Darabos
af88af1fa6 Annotate a few NetworkX algorithm types (#11811) 2024-04-23 11:48:49 +02:00
Sebastian Rittau
33de88879f Remove bare Incomplete annotations in third-party stubs (#11671) 2024-03-30 18:34:51 -07:00
Rebecca Chen
a4cc79fbec networkx: add another overload to OutEdgeView.__call__(). (#11578)
It's common to call the 'edges' property of a DiGraph with an 'nbunch'
argument and no other arguments (see the Examples section of
https://networkx.org/documentation/stable/reference/classes/generated/networkx.DiGraph.out_edges.html).
None of the existing overloads allow this.
2024-03-11 19:42:55 -07:00
Neil Girdhar
9d90eeb296 Fix networkx stub; location of subgraph_view, etc. (#11385) 2024-02-09 13:01:53 +01:00
Alex Waygood
c49c84f319 A new shade of Black (#11362) 2024-02-04 16:38:55 -08:00
Avasam
faf9d77d79 Bump networkx to 3.2.1 (#11336) 2024-01-31 07:30:20 +01:00
Wade Carpenter
26e77cbf67 Add more networkx annotations for networkx.algorithms.dag (#11224) 2024-01-15 18:52:57 +01:00
Sebastian Rittau
b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Neil Girdhar
ba7bd9f98a Add some missing networkx annotations (#11181) 2023-12-19 12:21:47 +01:00
Neil Girdhar
2dfa9544ed Fix annotation for networkx.subgraph_view (#11180) 2023-12-19 12:16:08 +01:00
Audrey Dutcher
658dd55c41 Add networkx stubs (#10544)
Co-authored-by: Avasam <samuel.06@hotmail.com>
Co-authored-by: Audrey Dutcher <audrey@rhelmot.io>
2023-12-14 21:52:04 -05:00