networkx
networkx copied to clipboard
Network Analysis in Python
As discussed by @dschult , @eriknw , and @rlratzel at PyCon US 2024, the current behavior of warning users when they enable caching to inform them that changing graph attributes...
"nx.trophic_levels" returning strange INF value caused by insufficient checking for singular matrix
Hello here and sorry for bothering you again. I noticed that `nx.trophic_levels` will sometimes return INF values for an unsupported graph instead of the following message. ``` networkx.exception.NetworkXError: Trophic levels...
From my layman understanding it seems as if the SpanningTreeIterator was written with MultiGraphs in mind. However, trying it with a MultiGraph yields repeated output of the same spanning tree....
Removes the `MultiDiGraph_EdgeKey` class for the 3.4 release.
Adds the option to save positions onto the graph. Everything still returns an dict for now for backwards compatibility. In the future we'll want the default behavior to write the...
The first version of the new draw API is ready! It takes the approach that a graph should be able to describe what it looks like and how it should...
Allow falling back to NetworkX by converting backend graphs to nx graphs. This is enabled by adding `"networkx"` to `nx.config.backend_priority`. This PR builds off of #7496, #7499, #7502 (WIP), and...
Previously, running networkx tests with backends allowed backend _algorithms_ to be tested. This PR makes it so that backend graph classes can be tested directly by e.g. running tests in...
This is the tiniest of refactors to split `_get_convert_kwargs` out of `_convert_arguments`, which seems like a nice separation and may be useful for adventurous backends and future functionality. CC @aMahanna...