| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Rm un-hittable validation lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lint and fix using ruff
* add flake8-pie lints
* remove useless import alias
* bump version
* bump deps
---------
Co-authored-by: daniel.eades <daniel.eades@hotmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add missing reference in all_node_cuts flow_func parameter
* added example to all_pairs_node_connectivity
* Update networkx/algorithms/approximation/connectivity.py
Added suggestion
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Update networkx/algorithms/approximation/connectivity.py
added pprint
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* Update networkx/algorithms/connectivity/kcutsets.py
fix linking
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* solved style problems
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add deprecated directive to reversed docstring.
* Add missing dep directives to shpfiles.
* Remove defn of INF sentinel.
* typo.
* str -> comment in forloop.
* STY: appropriate casing for var name.
|
| |
|
| |
|
|
|
|
| |
find networkx -name \*.py -exec pyupgrade --py36-plus {} \;
|
| |
|
|
|
|
|
|
|
|
|
| |
The copyright and author stuff is not necessary, out-of-date,
and inconsistent. It takes up visual space and is a pain to
police everyone doing the same thing on the top of the module.
Git handles authorship in a comprehensive and authoritative way.
The LICENSE.txt file applies to all project code.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Fixed problem in documentation view of this function
* Replacing `Return` to `Returns` in function docs
|
|
|
|
|
|
|
|
|
|
| |
Found via `codespell -q 3 -I ../networkx-whitelist.txt` where whitelist consisted of:
```
ans
childs
iff
nd
te
```
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Use octahedral instead of icosahedral for connectivity approx docs.
The approximation algorithm for node connectivity fails on the
icosahedral graph depending on node iteration order. We use the
octahedral graph instead as example in the docstrings.
* Fix k-components tests avoiding hard-coded node labels.
In order to support the new dict implementation of python 3.6 we
have to avoid hard-coding node labels for the k-components of the
example graphs in k-components tests. We now test the number of
k-components found, their number of nodes, and their node
connectivity to make sure that the algorithms are correct.
|
| |
|
|
|
|
| |
iterator for else
|
|\
| |
| | |
Remove successors_iter() and predecessors_iter(). G.successors() and G.predecessors() now return iterators instead of lists
|
| |
| |
| |
| | |
G.predecessors() now return iterators instead of lists
|
|/ |
|
|
|
|
|
| |
There is no need of a keyword argument for the container in the
auxiliary function `_bidirectional_shortest_path`.
|
| |
|
|
This PR adds White and Newman's fast approximation algorithm for
finding node independent paths between two nodes. It finds them by
computing their shortest path using BFS, marking the nodes of the path
found as used and then searching other shortest paths excluding the
nodes marked as used until no more paths exist. It is not exact because
a shortest path could use nodes that, if the path were longer, may belong
to two different node independent paths. Thus it only guarantees an
strict lower bound on node connectivity.
This implementation uses a modified version of `bidirectional_shortest_path`
that accepts the extra parameter 'exclude', which is a container for nodes
already used in other paths that should be ignored.
|