Commit Graph

60 Commits

Author SHA1 Message Date
Ali Hamdan 4bdb14ab57 networkx: complete the layout module (#14580) 2025-08-18 21:37:56 +02:00
Ali Hamdan e0dfd41739 networkx: (almost) complete the nx_pylab module (#14579) 2025-08-18 08:32:32 +02:00
Hunter Hogan ef3115e7d0 complete networkx/digraph.pyi addresses #14499 follows #14509 (#14569) 2025-08-15 10:51:09 +02:00
Ali Hamdan ea39410142 networkx: annotate the linalg module (#14551) 2025-08-11 18:58:50 +02:00
Ali Hamdan 897abe0089 networkx: improve the multigraph module (#14506) 2025-08-11 12:57:10 +02:00
Ali Hamdan d876dbab72 networkx: complete the astar and generic modules in shortest_paths (#14550) 2025-08-11 12:56:49 +02:00
Ali Hamdan b88f4c1757 networkx: improve the nx_agraph module (#14554) 2025-08-11 12:39:21 +02:00
Ali Hamdan 5bb4ec86c6 networkx: complete the components module (#14507) 2025-08-08 18:03:33 +02:00
Ali Hamdan 01cb5bac42 networkx: improve the shortest_paths.weighted module (#14508) 2025-08-08 18:02:54 +02:00
Hunter Hogan 4df58d8079 Complete networkx/graph.pyi. #14499 (#14509) 2025-08-08 11:52:58 +02:00
Sebastian Rittau 981bd8eb8d Remove pytype workarounds from third-party stubs (#14471) 2025-07-27 13:05:57 +02:00
Ali Hamdan 2c10360fd1 networkx: improve the cycles module (#14459) 2025-07-26 16:27:01 +02:00
Ali Hamdan afc1faa86b networkx: improve the distance_measures module (#14461) 2025-07-26 16:23:49 +02:00
Nate England 126b06fc32 Correct type hints for networkx/algorithms/flow/mincost.pyi (#14395) 2025-07-11 11:33:33 +02:00
Avasam 07a59e924f networkx: All return types from python-type-stubs (#14256) 2025-07-08 19:05:27 +02:00
logsincostan 213e055e85 [networkx] completed type annotation for equivalence_classes (#14352) 2025-06-30 14:41:29 +03:00
Axel Dahlberg 9a9230900f [networkx] Correct argument type for from_nested_tuple (#14218) 2025-06-09 23:07:57 -04:00
Semyon Moroz cf8e3649b9 Bump networkx to 3.5 (#14196) 2025-05-30 16:37:40 +02:00
Semyon Moroz 2091fe71b2 Bump importlib to 3.14 (#14138) 2025-05-26 07:12:19 -07:00
Avasam 855999ed9d networkx: Add symbols from python-type-stubs (#14084) 2025-05-22 13:01:02 +02:00
wyattscarpenter 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
Avasam 5a81bf54e6 networkx: type is_* and has_* functions (#14054) 2025-05-14 14:10:29 +02:00
Avasam 45b81fb599 networkx: consistent Unknown | None = None (#14027) 2025-05-13 11:43:01 +02:00
Avasam f0c88fd238 networkx: ignore_missing_stub = false (#13968) 2025-05-12 17:31:45 +02:00
Avasam 4b5e235d1c networkx: add all missing __all__ (#13956) 2025-05-08 22:25:25 -04:00
Avasam 41eb1a6731 networkx: Most nodelist params are collections (#13945) 2025-05-06 08:39:14 +02:00
thomas-whaley-poco 97dc39bc65 Fix generics in NetworkX (#13864) 2025-04-25 13:20:40 +02:00
Abdrakhman bb244d35ea [networkx] Fix a few annotations in AtlasView and Graph (#13656) 2025-03-18 12:35:50 +01:00
Kyllian Broers 1a9eef437a [networkx] Fix argument type of node_connected_component (#13612) 2025-03-11 11:52:29 +01:00
iconchris 336140b117 Add edges() override in MultiGraph to support the "keys" argument (#13567) 2025-03-03 16:03:41 +01:00
Avasam 6d6e858e63 Enable Ruff PLC (Pylint Convention) (#13306) 2025-03-03 15:39:40 +01:00
Leonardo-Pike-Excell 527d724bf4 [networkx] Add annotations for MultiDiGraph (#13319) 2025-02-26 15:20:45 +01:00
Daniel Darabos 84c78c6442 Extract NetworkX types from docstrings (#13458) 2025-02-26 15:03:13 +01:00
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:

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
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