<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/networkx.git/networkx/classes, branch main</title>
<subtitle>github.com: networkx/networkx.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/'/>
<entry>
<title>Handle weights as `distance=` in testing dispatch (#6671)</title>
<updated>2023-05-13T12:27:50+00:00</updated>
<author>
<name>Erik Welch</name>
<email>erik.n.welch@gmail.com</email>
</author>
<published>2023-05-13T12:27:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=797638345d3a31cd4fff8570a8df07d31e90022e'/>
<id>797638345d3a31cd4fff8570a8df07d31e90022e</id>
<content type='text'>
* Handle weights as `distance=` in testing dispatch

* fix `test_intersection`

This change was suggested here:
https://github.com/python-graphblas/graphblas-algorithms/pull/62#issuecomment-1531810715</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Handle weights as `distance=` in testing dispatch

* fix `test_intersection`

This change was suggested here:
https://github.com/python-graphblas/graphblas-algorithms/pull/62#issuecomment-1531810715</pre>
</div>
</content>
</entry>
<entry>
<title>Allow multiple graphs for `@nx._dispatch` (#6628)</title>
<updated>2023-04-25T23:57:12+00:00</updated>
<author>
<name>Jim Kitchen</name>
<email>jim22k@users.noreply.github.com</email>
</author>
<published>2023-04-25T23:57:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=8ed20630d5f09f1ced9a797e122e8c3383b08fe7'/>
<id>8ed20630d5f09f1ced9a797e122e8c3383b08fe7</id>
<content type='text'>
* Allow multiple graphs for nx._dispatch

A new `graphs` keyword is added. For the case of two graphs named
`G` and `H` as the first to arguments in `foo`, the new spelling is
@nx._dispatch(graphs="G,H")
def foo(G, H, other_arg, **kwargs):
    ...

* Use better default "G" for graphs kwarg

* fix</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Allow multiple graphs for nx._dispatch

A new `graphs` keyword is added. For the case of two graphs named
`G` and `H` as the first to arguments in `foo`, the new spelling is
@nx._dispatch(graphs="G,H")
def foo(G, H, other_arg, **kwargs):
    ...

* Use better default "G" for graphs kwarg

* fix</pre>
</div>
</content>
</entry>
<entry>
<title>Test dispatching via nx-loopback backend (#6536)</title>
<updated>2023-03-28T23:17:46+00:00</updated>
<author>
<name>Jim Kitchen</name>
<email>jim22k@users.noreply.github.com</email>
</author>
<published>2023-03-28T23:17:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=abd0a82d06c0ae8ecc1c60e5a9bde4c0dee08d48'/>
<id>abd0a82d06c0ae8ecc1c60e5a9bde4c0dee08d48</id>
<content type='text'>
* Add tests for nx._dispatch decorator

The dispatch functionality is used to delegate graph
computations to a different backend. Because those backends
are not part of NetworkX, testing the dispatching feature
was not originally added, relying instead on the other
backends (e.g. graphblas-algorithms) to verify the dispatch
functionality is working.

This change creates a "loopback" backend where NetworkX dispatches
to itself for the sole purpose of exercising the dispatching
machinery.

In one incarnation, various tests are augmented to use the
LoopbackGraph family and force loopback dispatching to occur
as normal usage would.

A second incarnation forces *all* tests to run in dispatch mode
but use of a different _dispatch decorator. This mode is triggered
for all of pytest, so it must be tested by the CI system specifically.

* Update CI to hopefully run dispatching auto tests

* Formatting

* More formatting fixes

* Better comments explaining dispatching tests</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add tests for nx._dispatch decorator

The dispatch functionality is used to delegate graph
computations to a different backend. Because those backends
are not part of NetworkX, testing the dispatching feature
was not originally added, relying instead on the other
backends (e.g. graphblas-algorithms) to verify the dispatch
functionality is working.

This change creates a "loopback" backend where NetworkX dispatches
to itself for the sole purpose of exercising the dispatching
machinery.

In one incarnation, various tests are augmented to use the
LoopbackGraph family and force loopback dispatching to occur
as normal usage would.

A second incarnation forces *all* tests to run in dispatch mode
but use of a different _dispatch decorator. This mode is triggered
for all of pytest, so it must be tested by the CI system specifically.

* Update CI to hopefully run dispatching auto tests

* Formatting

* More formatting fixes

* Better comments explaining dispatching tests</pre>
</div>
</content>
</entry>
<entry>
<title>Fix len operation of UnionAtlas (#6478)</title>
<updated>2023-03-14T13:04:32+00:00</updated>
<author>
<name>Dan Schult</name>
<email>dschult@colgate.edu</email>
</author>
<published>2023-03-14T13:04:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=b17c43c8495f58a6b02abffa1471026a1650ab93'/>
<id>b17c43c8495f58a6b02abffa1471026a1650ab93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tweak `test_override_dispatch` to allow G keyword (#6499)</title>
<updated>2023-03-13T19:58:28+00:00</updated>
<author>
<name>Erik Welch</name>
<email>erik.n.welch@gmail.com</email>
</author>
<published>2023-03-13T19:58:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=8fd5c481338dcfaeeb6ac7afc239a2eebc0500e1'/>
<id>8fd5c481338dcfaeeb6ac7afc239a2eebc0500e1</id>
<content type='text'>
This is a simple follow-up to #6471, and, as in that PR, this fix is short term.
We would like to find a more elegant, robust solution (probably after nx 3.1).

I sometimes forget there are two versions of `_dispatch`, and this PR fixes the
one that gets used when `NETWORKX_GRAPH_CONVERT` environment variable is set.
NetworkX does not yet test `test_override_dispatch`, so it's not easy to add
a test, but it gets used by external backends such as `graphblas_algorithms`.
Ideally, we should test this in NetworkX, which will require calling subprocess
in a test with an environment variable set.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a simple follow-up to #6471, and, as in that PR, this fix is short term.
We would like to find a more elegant, robust solution (probably after nx 3.1).

I sometimes forget there are two versions of `_dispatch`, and this PR fixes the
one that gets used when `NETWORKX_GRAPH_CONVERT` environment variable is set.
NetworkX does not yet test `test_override_dispatch`, so it's not easy to add
a test, but it gets used by external backends such as `graphblas_algorithms`.
Ideally, we should test this in NetworkX, which will require calling subprocess
in a test with an environment variable set.</pre>
</div>
</content>
</entry>
<entry>
<title>Ignore weakrefs when testing for memory leak (#6466)</title>
<updated>2023-03-12T06:27:06+00:00</updated>
<author>
<name>Erik Welch</name>
<email>erik.n.welch@gmail.com</email>
</author>
<published>2023-03-12T06:27:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=37547e45c5ea80ad8eb9b907473b257aed611fde'/>
<id>37547e45c5ea80ad8eb9b907473b257aed611fde</id>
<content type='text'>
* Ignore weakrefs when testing for memory leak

* Add educational comments about gc and weakrefs</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Ignore weakrefs when testing for memory leak

* Add educational comments about gc and weakrefs</pre>
</div>
</content>
</entry>
<entry>
<title>Allow first argument to be passed as kwarg in dispatcher (#6471)</title>
<updated>2023-03-12T06:13:44+00:00</updated>
<author>
<name>Dan Schult</name>
<email>dschult@colgate.edu</email>
</author>
<published>2023-03-12T06:13:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=1b3646ad9d0f9506c60b473a8f84915a01ed0f86'/>
<id>1b3646ad9d0f9506c60b473a8f84915a01ed0f86</id>
<content type='text'>
* tweak _dispatch to allow func(G=G) pattern in signature

Co-authored-by: Erik Welch &lt;erik.n.welch@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tweak _dispatch to allow func(G=G) pattern in signature

Co-authored-by: Erik Welch &lt;erik.n.welch@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Lint using Ruff (#6371)</title>
<updated>2023-02-19T17:14:00+00:00</updated>
<author>
<name>danieleades</name>
<email>33452915+danieleades@users.noreply.github.com</email>
</author>
<published>2023-02-19T17:14:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=5fcf01b9a43a097c4f579486023d1279b2b88619'/>
<id>5fcf01b9a43a097c4f579486023d1279b2b88619</id>
<content type='text'>
* lint and fix using ruff

* add flake8-pie lints

* remove useless import alias

* bump version

* bump deps

---------

Co-authored-by: daniel.eades &lt;daniel.eades@hotmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lint and fix using ruff

* add flake8-pie lints

* remove useless import alias

* bump version

* bump deps

---------

Co-authored-by: daniel.eades &lt;daniel.eades@hotmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Update developer requirements (#6429)</title>
<updated>2023-02-14T20:52:22+00:00</updated>
<author>
<name>Jarrod Millman</name>
<email>jarrod.millman@gmail.com</email>
</author>
<published>2023-02-14T20:52:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=79586c3f1a0f47e6643919887ace7e7e9335db8a'/>
<id>79586c3f1a0f47e6643919887ace7e7e9335db8a</id>
<content type='text'>
* Update developer requirements

* Run linter</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Update developer requirements

* Run linter</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Minor formatting fixups to get rid of doc build warnings. (#6363)</title>
<updated>2023-01-13T20:45:23+00:00</updated>
<author>
<name>Ross Barnowski</name>
<email>rossbar@berkeley.edu</email>
</author>
<published>2023-01-13T20:45:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/networkx.git/commit/?id=150daea06aeb7acd88d09fdf946a6210e97476a8'/>
<id>150daea06aeb7acd88d09fdf946a6210e97476a8</id>
<content type='text'>
Minor formatting fixups to get rid of doc build warnings.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Minor formatting fixups to get rid of doc build warnings.</pre>
</div>
</content>
</entry>
</feed>
