Commit Graph
57 Commits
Author SHA1 Message Date
Ali HamdanandGitHub ea39410142 networkx: annotate the linalg module (#14551) 2025-08-11 18:58:50 +02:00
Ali HamdanandGitHub 897abe0089 networkx: improve the multigraph module (#14506) 2025-08-11 12:57:10 +02:00
Ali HamdanandGitHub d876dbab72 networkx: complete the astar and generic modules in shortest_paths (#14550) 2025-08-11 12:56:49 +02:00
Ali HamdanandGitHub b88f4c1757 networkx: improve the nx_agraph module (#14554) 2025-08-11 12:39:21 +02:00
Ali HamdanandGitHub 5bb4ec86c6 networkx: complete the components module (#14507) 2025-08-08 18:03:33 +02:00
Ali HamdanandGitHub 01cb5bac42 networkx: improve the shortest_paths.weighted module (#14508) 2025-08-08 18:02:54 +02:00
Hunter HoganandGitHub 4df58d8079 Complete networkx/graph.pyi. #14499 (#14509) 2025-08-08 11:52:58 +02:00
Sebastian RittauandGitHub 981bd8eb8d Remove pytype workarounds from third-party stubs (#14471) 2025-07-27 13:05:57 +02:00
Ali HamdanandGitHub 2c10360fd1 networkx: improve the cycles module (#14459) 2025-07-26 16:27:01 +02:00
Ali HamdanandGitHub afc1faa86b networkx: improve the distance_measures module (#14461) 2025-07-26 16:23:49 +02:00
Nate EnglandandGitHub 126b06fc32 Correct type hints for networkx/algorithms/flow/mincost.pyi (#14395) 2025-07-11 11:33:33 +02:00
AvasamandGitHub 07a59e924f networkx: All return types from python-type-stubs (#14256) 2025-07-08 19:05:27 +02:00
logsincostanandGitHub 213e055e85 [networkx] completed type annotation for equivalence_classes (#14352) 2025-06-30 14:41:29 +03:00
Axel DahlbergandGitHub 9a9230900f [networkx] Correct argument type for from_nested_tuple (#14218) 2025-06-09 23:07:57 -04:00
Semyon MorozandGitHub cf8e3649b9 Bump networkx to 3.5 (#14196) 2025-05-30 16:37:40 +02:00
Semyon MorozandGitHub 2091fe71b2 Bump importlib to 3.14 (#14138) 2025-05-26 07:12:19 -07:00
AvasamandGitHub 855999ed9d networkx: Add symbols from python-type-stubs (#14084) 2025-05-22 13:01:02 +02:00
wyattscarpenterandGitHub 9951e66a5e Update nx_pylab.pyi: allow node_color to be a list of strings as well (#14057) 2025-05-14 14:36:17 +02:00
AvasamandGitHub 5a81bf54e6 networkx: type is_* and has_* functions (#14054) 2025-05-14 14:10:29 +02:00
AvasamandGitHub 45b81fb599 networkx: consistent Unknown | None = None (#14027) 2025-05-13 11:43:01 +02:00
AvasamandGitHub f0c88fd238 networkx: ignore_missing_stub = false (#13968) 2025-05-12 17:31:45 +02:00
AvasamandGitHub 4b5e235d1c networkx: add all missing __all__ (#13956) 2025-05-08 22:25:25 -04:00
AvasamandGitHub 41eb1a6731 networkx: Most nodelist params are collections (#13945) 2025-05-06 08:39:14 +02:00
thomas-whaley-pocoandGitHub 97dc39bc65 Fix generics in NetworkX (#13864) 2025-04-25 13:20:40 +02:00
AbdrakhmanandGitHub bb244d35ea [networkx] Fix a few annotations in AtlasView and Graph (#13656) 2025-03-18 12:35:50 +01:00
Kyllian BroersandGitHub 1a9eef437a [networkx] Fix argument type of node_connected_component (#13612) 2025-03-11 11:52:29 +01:00
iconchrisandGitHub 336140b117 Add edges() override in MultiGraph to support the "keys" argument (#13567) 2025-03-03 16:03:41 +01:00
AvasamandGitHub 6d6e858e63 Enable Ruff PLC (Pylint Convention) (#13306) 2025-03-03 15:39:40 +01:00
Leonardo-Pike-ExcellandGitHub 527d724bf4 [networkx] Add annotations for MultiDiGraph (#13319) 2025-02-26 15:20:45 +01:00
Daniel DarabosandGitHub 84c78c6442 Extract NetworkX types from docstrings (#13458) 2025-02-26 15:03:13 +01:00
AvasamandGitHub dde13fb91d Enable Ruff PGH rules (#13304) 2024-12-26 21:35:34 +00:00
Danny YangandGitHub 1be2c08869 Update networkx stubs for 3.4.2 (#13001) 2024-11-13 20:03:01 -08:00
Ali HamdanandGitHub a870a4e63a Remove numpy pins from several stubs (#12993) 2024-11-11 17:47:11 +01:00
Sebastian RittauandGitHub ebdd2c528d Update mypy to 1.12.0 (#12859) 2024-10-19 16:45:38 +01:00
github-actions[bot]andGitHub d7e6cb8e1a Bump networkx to 3.3 (#11727) 2024-10-08 10:44:50 +02:00
Kanishk PachauriandGitHub eb7df6d118 fix: weight parameter type for networkx.algorithms.shortest_paths (#12663) 2024-09-17 21:37:51 +02:00
Niklas RosensteinandGitHub 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:

https://github.com/networkx/networkx/blob/89718e0514bded93ded5b00aed755a4474c1dc6f/networkx/classes/digraph.py#L1198-L1199

Implementation:

https://github.com/networkx/networkx/blob/89718e0514bded93ded5b00aed755a4474c1dc6f/networkx/classes/reportviews.py#L436-L437
2024-09-06 15:07:25 -07:00
sobolevnandGitHub 30a20398c9 Pin numpy in various stubs (#12554) 2024-08-19 15:38:23 +03:00
George MaconandGitHub 0b6f15c2ff Add graph attribute to networkx.Graph (#12505) 2024-08-12 13:54:03 +02:00
Ali HamdanandGitHub 9045c67ae0 networkx: Fix stubtest errors and remove numpy version pin (#12477) 2024-08-10 15:46:51 -07:00
sobolevnandGitHub 6f248dfa37 Bump mypy to 1.11.1 (#12463) 2024-08-04 23:19:28 -07:00
Benjamin KirkbrideandGitHub d498fe148e add stubs for networx.has_path (#12252) 2024-07-02 10:14:56 +02:00
Sebastian RittauandGitHub 212af7a526 Pin various stubs to numpy to < 2 (#12152)
Fixes #12146
2024-06-17 15:50:22 +02:00
PeterandGitHub 3dc74ddf07 [networks] Fix some functions requiring DiGraph objects (#12066) 2024-05-31 00:34:34 +02:00
Ryan MorsheadandGitHub e7daedd6ab add networkx.topological_generations (#11927) 2024-05-17 08:52:26 +02:00
Sebastian RittauandGitHub e2e14d1cc1 [networkx] Fix incremental_closeness_centrality argument type (#11828) 2024-04-24 17:00:56 +02:00
Daniel DarabosandGitHub af88af1fa6 Annotate a few NetworkX algorithm types (#11811) 2024-04-23 11:48:49 +02:00
Sebastian RittauandGitHub 33de88879f Remove bare Incomplete annotations in third-party stubs (#11671) 2024-03-30 18:34:51 -07:00
Rebecca ChenandGitHub 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 GirdharandGitHub 9d90eeb296 Fix networkx stub; location of subgraph_view, etc. (#11385) 2024-02-09 13:01:53 +01:00