| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
add test for error message in eccentricity function
|
| | |
|
|/
|
|
| |
Changes the error message when an infinite path length is encountered so
that it is different based on whether the graph is directed or not.
|
|\
| |
| | |
Use sphinx stable branch via github on ReadTheDocs
|
|/
|
|
| |
The stable branch of sphinx has the one-line fix for autosummary.
So even though the release on pipy doesn't have it, we can get it from github.
|
|\
| |
| | |
Adds unit test for new use of string.format().
|
|/ |
|
|\
| |
| | |
Use format() instead of modulus for node formatting in error message to treat tuples correctly.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of :
```
'dict' objects are unhashableTraceback (most recent call last):
File "<builtin>/app_main.py", line 75, in run_toplevel
File "mk_graph_file.py", line 34, in <module>
if d['weight'] > 3])
File "/usr/local/lib/pypy2.7/dist-packages/networkx/classes/graph.py", line 1488, in subgraph
for n in bunch:
File "/usr/local/lib/pypy2.7/dist-packages/networkx/classes/graph.py", line 1815, in bunch_iter
"Node %s in the sequence nbunch is not a valid node."%n)
TypeError: not all arguments converted during string formatting
```
You get:
```
'dict' objects are unhashableTraceback (most recent call last):
File "<builtin>/app_main.py", line 75, in run_toplevel
File "mk_graph_file.py", line 34, in <module>
if d['weight'] > 3])
File "/usr/local/lib/pypy2.7/dist-packages/networkx/classes/graph.py", line 1488, in subgraph
for n in bunch:
File "/usr/local/lib/pypy2.7/dist-packages/networkx/classes/graph.py", line 1815, in bunch_iter
"Node {} in the sequence nbunch is not a valid node.".format(n))
NetworkXError: Node ('java', 'performance', {'weight': 5}) in the sequence nbunch is not a valid node.
```
|
|\
| |
| | |
Implement reciprocity for directed graphs.
|
| | |
|
| |\
| |/
|/| |
|
|\ \
| | |
| | | |
fix compatible issue with new numpy
|
|/ / |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
Fix some sphinx formatting errors
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
make all doc_strings raw format r''' '''
correct underline lengths for headings
fix latex issue in harmonic_centrality
replace :ticket:, :url:, :doi:, :arxiv: with links to webpages
fix spacing with commas before colons so sphinx can parse well
add "methods" heading in graph class rst files
|
|\ \
| |/
|/| |
Update examples for iterator edges and nodes methods
|
|/
|
|
|
| |
This will help with readthedocs make_gallery #1667
These are solely due to the switch to our 2.0 API
|
|\
| |
| | |
Make sure __all__ variables loaded in flow __init__.py
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Change comments about fringe tuples in dijkstra
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Update install.rst
|
| | |
| | |
| | |
| | |
| | | |
Update language for installing with pip.
Change min python version to 2.7 or 3.3 (removing 3.2)
|
|\ \ \
| |/ /
|/| | |
Rewrite harmonic_centrality to better use iterator
|
| | |
| | |
| | |
| | | |
Better use iterator functionality of path functions, but still returns a dict.
So is not an iterator itself (yet -- should it be?).
|
|\ \ \
| | | |
| | | | |
Update install documentation
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
Clarify docstring and return code for _djikstra()
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Update all_pairs_dijkstra_path_length and single_source_dijkstra_path_length to be generators.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Allow GML read and write of _ characters
|
| | | | | |
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Add coverage for python 3.5 and drop for 3.2
|
| | | | |
|
| | | | |
|
|/ / / |
|
|\ \ \
| |_|/
|/| | |
Makes stochastic_graph work for multigraphs.
|
|/ /
| |
| |
| |
| | |
This commit allows the `stochastic_graph` generator to operate on
`MultiDiGraph` instances. It also adds some missing unit tests.
|
|\ \
| | |
| | | |
rewrite topolgical_sort, add lexicographical_topological_sort
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Rewrote topolgical_sort as a generator:
* It no longer accepts reverse or nbunch arguments
* It is slightly faster.
Added lexicographical_topological_sort, which accepts a key.
Some tests for topological sort were removed because they relied on
CPython's particular dict element ordering.
Added utils from more_itertools:
* These were necessary for working with the new generators.
* "pairwise" is equavalent to zip(some_list, some_list[1:]) -- for
generators.
* "consume" consumes an iterator.
|