summaryrefslogtreecommitdiff
path: root/networkx/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump release versionJarrod Millman2023-04-041-1/+1
|
* Designate 3.1 releasenetworkx-3.1Jarrod Millman2023-04-041-1/+1
|
* Bump release versionJarrod Millman2023-03-301-1/+1
|
* Designate 3.1rc0 releasenetworkx-3.1rc0Jarrod Millman2023-03-301-1/+1
|
* Bump release versionJarrod Millman2023-01-071-1/+1
|
* Designate 3.0 releasenetworkx-3.0Jarrod Millman2023-01-071-1/+1
|
* Bump release versionJarrod Millman2022-11-111-1/+1
|
* Designate 3.0rc1 releasenetworkx-3.0rc1Jarrod Millman2022-11-111-1/+1
|
* plugin based backend infrastructure to use multiple computation backends (#6000)Mridul Seth2022-11-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Wrappers classes to dispatch to a backend * Rework the backend dispatching - Use __networkx_plugin__=name to find graph-like objects instead of subclassing - Add PluginInfo to smooth over differences in importlib.metadata across python versions - Add dispatch behavior override via environment variable to aid in testing plugins * Dispatch more algorithms and improve auto-test capabilities * Allow dispatcher decorator without a name - Name is taken from the decorated function - Raise error if backend doesn't implement a decorated function which is called - Check for duplicate names for dispatching algorithms * Make sphinx pick up backend docs * make black happy * Rename decorator to _dispatch as it's experimental * A few more dispatched functions * Make convert to and from methods for auto-testing - Rename `convert` to `convert_from_nx` - Add `convert_to_nx` function These will allow backends to return native objects when dispatching, but provide a mechanism to convert the result to the type expected by NetworkX tests for the auto-test plugin mechanism. * More dispatching * Include name with `convert_**_nx` methods * Remove known plugin names This check is not needed, as any plugin can register itself in the entry points section. The dispatching and auto-testing explicitly specify the plugin to use, so there is no need to hardcode the options. These were originally included for security, but any malicious actor would simply use one of the valid names, so having a hardcoded list does not actually provide any meaningful security. * Add `dispatchname` to dispatchable functions Co-authored-by: Jim Kitchen <jim22k@gmail.com> Co-authored-by: Erik Welch <erik.n.welch@gmail.com>
* Bump release versionJarrod Millman2022-10-121-1/+1
|
* Designate 3.0b1 releasenetworkx-3.0b1Jarrod Millman2022-10-121-1/+1
|
* make lazy_import private and remove its internal use (#5878)Dan Schult2022-07-171-1/+1
| | | | | * make lazy_import private and remove its internal use * add back the non-lazy imports of numpy to utils.misc
* Remove pyyaml dependency (#5763)Jarrod Millman2022-06-211-40/+0
| | | | | | | | * Remove pyyaml dependency * Make mypy happy. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Co-authored-by: Mridul Seth <seth.mridul@gmail.com>
* Remove networkx.testing subpackage (#5782)Matt Schwennesen2022-06-161-2/+0
| | | | | Removes deprecated nx.test() function as well as deprecated testing utilities `almost_equal`, `assert_nodes_equal`, `assert_edges_equal`, and `assert_graphs_equal`.
* Bump release versionJarrod Millman2022-06-131-1/+1
|
* Designate 2.8.4 releasenetworkx-2.8.4Jarrod Millman2022-06-131-1/+1
|
* Bump release versionJarrod Millman2022-06-041-1/+1
|
* Designate 2.8.3 releasenetworkx-2.8.3Jarrod Millman2022-06-041-1/+1
|
* Bump release versionJarrod Millman2022-05-211-1/+1
|
* Designate 2.8.2 releasenetworkx-2.8.2Jarrod Millman2022-05-211-1/+1
|
* Bump release versionJarrod Millman2022-05-201-1/+1
|
* Bump release versionJarrod Millman2022-05-181-1/+1
|
* Designate 2.8.1 releasenetworkx-2.8.1Jarrod Millman2022-05-181-1/+1
|
* Bump release versionJarrod Millman2022-05-131-1/+1
|
* Designate 2.8.1rc1 releasenetworkx-2.8.1rc1Jarrod Millman2022-05-131-1/+1
|
* Bump release versionJarrod Millman2022-04-091-1/+1
|
* Designate 2.8 releasenetworkx-2.8Jarrod Millman2022-04-091-1/+1
|
* Bump release versionJarrod Millman2022-04-041-1/+1
|
* Designate 2.8rc1 releasenetworkx-2.8rc1Jarrod Millman2022-04-041-1/+1
|
* Bump release versionJarrod Millman2022-03-051-1/+1
|
* Designate 2.7.1 releasenetworkx-2.7.1Jarrod Millman2022-03-051-1/+1
|
* Change dev version to 2.7.1Jarrod Millman2022-03-011-1/+1
|
* Bump release versionJarrod Millman2022-02-281-1/+1
|
* Designate 2.7 releasenetworkx-2.7Jarrod Millman2022-02-281-1/+1
|
* Bump release versionJarrod Millman2022-02-191-1/+1
|
* Designate 2.7rc1 releasenetworkx-2.7rc1Jarrod Millman2022-02-191-1/+1
|
* Initial setup of lazy_import functions. (#4909)Dan Schult2022-01-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | * Initial setup of lazy_import functions. Still needs: - way to handle pytest.importorskip --> soln is not to load delayed modules into sys.modules - Loader class instead of monkey patch on SourceFileLoader - Way to identify a lazily-loaded-not-yet-used module --> now create an instance of the Delayed Module class. * fix importorskip with new module class * Remove lazy_importorskip. Don't add Delayed reporting module to sys.modules * make tests work for pypy * refactor to include changes from skimage.lazy * fix test handling of types.ModuleType * Change name from nx.lazy_imports.load to nx.lazy_import * fix tests to use new name. keep `attach` name as is.
* fix typo (#5008)Xiangyu Xu2021-08-051-1/+1
| | | | | | | | | * fix typo * fix pyyaml typo * Apply changes to other relevant __getattrs__. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Bump release versionJarrod Millman2021-07-261-1/+1
|
* Designate 2.6.2 releasenetworkx-2.6.2Jarrod Millman2021-07-261-1/+1
|
* Bump release versionJarrod Millman2021-07-091-1/+1
|
* Bump release versionJarrod Millman2021-07-081-1/+1
|
* Designate 2.6.1 releasenetworkx-2.6.1Jarrod Millman2021-07-081-1/+1
|
* Bump release versionJarrod Millman2021-07-081-1/+1
|
* Designate 2.6 releasenetworkx-2.6Jarrod Millman2021-07-081-1/+1
|
* Bump release versionJarrod Millman2021-06-221-1/+1
|
* Designate 2.6rc2 releasenetworkx-2.6rc2Jarrod Millman2021-06-221-1/+1
|
* Bump release versionJarrod Millman2021-05-311-1/+1
|
* Designate 2.6rc1 releasenetworkx-2.6rc1Jarrod Millman2021-05-311-1/+1
|
* Remove "networkx" from top-level networkx namespace (#4840)Ross Barnowski2021-05-311-12/+12
| | | | | | | | | | | | | * Add a test to catch importing aliases. * Add test for another bad import pattern. * Fix one bad import pattern. Adds __all__ to some modules where it was missing. * use `from ... import` in all __init__ imports Co-authored-by: Dan Schult <dschult@colgate.edu>