🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 59 (from laksa061)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

📄
INDEXABLE
CRAWLED
29 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH1 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://pypi.org/project/bellmanford/
Last Crawled2026-03-11 01:37:02 (29 days ago)
First Indexed2017-05-27 07:11:10 (8 years ago)
HTTP Status Code200
Meta Titlebellmanford · PyPI
Meta DescriptionSmall extensions of the Bellman-Ford routines in NetworkX, primarily for convenience (https://networkx.github.io).
Meta Canonicalnull
Boilerpipe Text
This package provides a few small extensions of the Bellman-Ford routines in NetworkX , primarily for convenience. Installation bellmanford is available on PyPI: pip install bellmanford Usage bellman_ford length , nodes , negative_cycle = bellman_ford ( G , source , target , weight = 'weight' ) Compute shortest path and shortest path lengths between a source node and target node in weighted graphs using the Bellman-Ford algorithm. Parameters G : NetworkX graph pred : dict - Keyed by node to predecessor in the path dist : dict - Keyed by node to the distance from the source source : node label - Source node target : node label - Target node weight : string - Edge data key corresponding to the edge weight Returns length : numeric - Length of a negative cycle if one exists. Otherwise, length of a shortest path. Length is inf if source and target are not connected. nodes : list - Nodes in a negative edge cycle (in order) if one exists. Otherwise nodes in a shortest path. List is empty if source and target are not connected. negative_cycle : bool - True if a negative edge cycle exists, otherwise False . Examples >>> import networkx as nx >>> G = nx . path_graph ( 5 , create_using = nx . DiGraph ()) >>> bf . bellman_ford ( G , source = 0 , target = 4 ) ( 3 , [ 1 , 2 , 3 , 4 ], False ) negative_edge_cycle length , nodes , negative_cycle = negative_edge_cycle ( G , weight = 'weight' ) If there is a negative edge cycle anywhere in G , returns True . Also returns the total weight of the cycle and the nodes in the cycle. Parameters G : NetworkX graph weight : string, optional (default = 'weight' ) - Edge data key corresponding to the edge weight Returns length : numeric - Length of a negative edge cycle if one exists, otherwise None . nodes : list - Nodes in a negative edge cycle (in order) if one exists, otherwise None . negative_cycle : bool - True if a negative edge cycle exists, otherwise False . Examples >>> import networkx as nx >>> import bellmanford as bf >>> G = nx . cycle_graph ( 5 , create_using = nx . DiGraph ()) >>> print ( bf . negative_edge_cycle ( G )) ( None , [], False ) >>> G [ 1 ][ 2 ][ 'weight' ] = - 7 >>> print ( bf . negative_edge_cycle ( G )) ( - 3 , [ 4 , 0 , 1 , 2 , 3 , 4 ], True )
Markdown
[Skip to main content](https://pypi.org/project/bellmanford/#content) Switch to mobile version Warning Some features may not work without JavaScript. Please try enabling it if you encounter problems. Join the official Python Developers Survey 2026 and have a chance to win a prize [Take the 2026 survey\!](https://surveys.jetbrains.com/s3/python-developers-survey-2026) [![PyPI](https://pypi.org/static/images/logo-small.8998e9d1.svg)](https://pypi.org/) - [Help](https://pypi.org/help/) - [Docs](https://docs.pypi.org/) - [Sponsors](https://pypi.org/sponsors/) - [Log in](https://pypi.org/account/login/?next=https%3A%2F%2Fpypi.org%2Fproject%2Fbellmanford%2F) - [Register](https://pypi.org/account/register/) Menu - [Help](https://pypi.org/help/) - [Docs](https://docs.pypi.org/) - [Sponsors](https://pypi.org/sponsors/) - [Log in](https://pypi.org/account/login/?next=https%3A%2F%2Fpypi.org%2Fproject%2Fbellmanford%2F) - [Register](https://pypi.org/account/register/) # bellmanford 0.2.1 pip install bellmanford Copy PIP instructions [Latest version](https://pypi.org/project/bellmanford/) Released: May 7, 2018 Small extensions of the Bellman-Ford routines in NetworkX, primarily for convenience (https://networkx.github.io). ### Navigation - [Project description](https://pypi.org/project/bellmanford/#description) - [Release history](https://pypi.org/project/bellmanford/#history) - [Download files](https://pypi.org/project/bellmanford/#files) ### Verified details *These details have been [verified by PyPI](https://docs.pypi.org/project_metadata/#verified-details)* ###### Maintainers [![Avatar for nelsonuhan from gravatar.com](https://pypi-camo.freetls.fastly.net/b6e0399a3c5310419441272f5bb761650051f957/68747470733a2f2f7365637572652e67726176617461722e636f6d2f6176617461722f65613462323932373465633931396664646662326632303232613038373363323f73697a653d3530) nelsonuhan](https://pypi.org/user/nelsonuhan/) ### Unverified details *These details have **not** been verified by PyPI* ###### Project links - [Homepage](https://github.com/nelsonuhan/bellmanford) ###### Meta - **License:** BSD - **Author:** [Nelson Uhan](mailto:nelson@uhan.me) [Report project as malware](https://pypi.org/project/bellmanford/submit-malware-report/) - [Project description](https://pypi.org/project/bellmanford/#description) - [Project details](https://pypi.org/project/bellmanford/#data) - [Release history](https://pypi.org/project/bellmanford/#history) - [Download files](https://pypi.org/project/bellmanford/#files) ## Project description This package provides a few small extensions of the Bellman-Ford routines in [NetworkX](https://networkx.github.io/), primarily for convenience. ## Installation bellmanford is available on PyPI: ``` pip install bellmanford ``` ## Usage ### bellman\_ford ``` length, nodes, negative_cycle = bellman_ford(G, source, target, weight='weight') ``` Compute shortest path and shortest path lengths between a source node and target node in weighted graphs using the Bellman-Ford algorithm. #### Parameters - G : NetworkX graph - pred : dict - Keyed by node to predecessor in the path - dist : dict - Keyed by node to the distance from the source - source: node label - Source node - target: node label - Target node - weight : string - Edge data key corresponding to the edge weight #### Returns - length : numeric - Length of a negative cycle if one exists. Otherwise, length of a shortest path. Length is inf if source and target are not connected. - nodes : list - Nodes in a negative edge cycle (in order) if one exists. Otherwise nodes in a shortest path. List is empty if source and target are not connected. - negative\_cycle : bool - True if a negative edge cycle exists, otherwise False. #### Examples ``` >>> import networkx as nx >>> G = nx.path_graph(5, create_using = nx.DiGraph()) >>> bf.bellman_ford(G, source=0, target=4) (3, [1, 2, 3, 4], False) ``` ### negative\_edge\_cycle ``` length, nodes, negative_cycle = negative_edge_cycle(G, weight='weight') ``` If there is a negative edge cycle anywhere in G, returns True. Also returns the total weight of the cycle and the nodes in the cycle. #### Parameters - G : NetworkX graph - weight : string, optional (default = 'weight') - Edge data key corresponding to the edge weight #### Returns - length : numeric - Length of a negative edge cycle if one exists, otherwise None. - nodes : list - Nodes in a negative edge cycle (in order) if one exists, otherwise None. - negative\_cycle : bool - True if a negative edge cycle exists, otherwise False. #### Examples ``` >>> import networkx as nx >>> import bellmanford as bf >>> G = nx.cycle_graph(5, create_using = nx.DiGraph()) >>> print(bf.negative_edge_cycle(G)) (None, [], False) >>> G[1][2]['weight'] = -7 >>> print(bf.negative_edge_cycle(G)) (-3, [4, 0, 1, 2, 3, 4], True) ``` ## Project details ### Verified details *These details have been [verified by PyPI](https://docs.pypi.org/project_metadata/#verified-details)* ###### Maintainers [![Avatar for nelsonuhan from gravatar.com](https://pypi-camo.freetls.fastly.net/b6e0399a3c5310419441272f5bb761650051f957/68747470733a2f2f7365637572652e67726176617461722e636f6d2f6176617461722f65613462323932373465633931396664646662326632303232613038373363323f73697a653d3530) nelsonuhan](https://pypi.org/user/nelsonuhan/) ### Unverified details *These details have **not** been verified by PyPI* ###### Project links - [Homepage](https://github.com/nelsonuhan/bellmanford) ###### Meta - **License:** BSD - **Author:** [Nelson Uhan](mailto:nelson@uhan.me) ## Release history [Release notifications](https://pypi.org/help/#project-release-notifications) \| [RSS feed](https://pypi.org/rss/project/bellmanford/releases.xml) This version ![](https://pypi.org/static/images/blue-cube.572a5bfb.svg) [0\.2.1 May 7, 2018](https://pypi.org/project/bellmanford/0.2.1/) ![](https://pypi.org/static/images/white-cube.2351a86c.svg) [0\.1.2 Aug 3, 2017](https://pypi.org/project/bellmanford/0.1.2/) ![](https://pypi.org/static/images/white-cube.2351a86c.svg) [0\.1.1 Jan 26, 2017](https://pypi.org/project/bellmanford/0.1.1/) ![](https://pypi.org/static/images/white-cube.2351a86c.svg) [0\.1 Jan 12, 2017](https://pypi.org/project/bellmanford/0.1/) ## Download files Download the file for your platform. If you're not sure which to choose, learn more about [installing packages](https://packaging.python.org/tutorials/installing-packages/ "External link"). ### Source Distribution [bellmanford-0.2.1.tar.gz](https://files.pythonhosted.org/packages/ea/2b/2c483bdd3c07af70e5ae1a85183f40c980e25b98ac16eb122202cc9a8b18/bellmanford-0.2.1.tar.gz) (5.2 kB [view details](https://pypi.org/project/bellmanford/#bellmanford-0.2.1.tar.gz)) Uploaded May 7, 2018 `Source` ## File details Details for the file `bellmanford-0.2.1.tar.gz`. ### File metadata - Download URL: [bellmanford-0.2.1.tar.gz](https://files.pythonhosted.org/packages/ea/2b/2c483bdd3c07af70e5ae1a85183f40c980e25b98ac16eb122202cc9a8b18/bellmanford-0.2.1.tar.gz) - Upload date: May 7, 2018 - Size: 5.2 kB - Tags: Source - Uploaded using Trusted Publishing? No ### File hashes | Algorithm | Hash digest | | |---|---|---| | SHA256 | `29e4975df1b1c8353d6e495f214e23a470e8eb7021c7a3c0db7c24c78599d39e` | Copy | | MD5 | `1ec12aee1d21f0260699dc4a3f60b58b` | Copy | | BLAKE2b-256 | `ea2b2c483bdd3c07af70e5ae1a85183f40c980e25b98ac16eb122202cc9a8b18` | Copy | [See more details on using hashes here.](https://pip.pypa.io/en/stable/topics/secure-installs/#hash-checking-mode "External link") ![](https://pypi.org/static/images/white-cube.2351a86c.svg) ## Help - [Installing packages](https://packaging.python.org/tutorials/installing-packages/ "External link") - [Uploading packages](https://packaging.python.org/tutorials/packaging-projects/ "External link") - [User guide](https://packaging.python.org/ "External link") - [Project name retention](https://www.python.org/dev/peps/pep-0541/ "External link") - [FAQs](https://pypi.org/help/) ## About PyPI - [PyPI Blog](https://blog.pypi.org/ "External link") - [Infrastructure dashboard](https://dtdg.co/pypi "External link") - [Statistics](https://pypi.org/stats/) - [Logos & trademarks](https://pypi.org/trademarks/) - [Our sponsors](https://pypi.org/sponsors/) ## Contributing to PyPI - [Bugs and feedback](https://pypi.org/help/#feedback) - [Contribute on GitHub](https://github.com/pypi/warehouse "External link") - [Translate PyPI](https://hosted.weblate.org/projects/pypa/warehouse/ "External link") - [Sponsor PyPI](https://pypi.org/sponsors/) - [Development credits](https://github.com/pypi/warehouse/graphs/contributors "External link") ## Using PyPI - [Terms of Service](https://policies.python.org/pypi.org/Terms-of-Service/ "External link") - [Report security issue](https://pypi.org/security/) - [Code of conduct](https://policies.python.org/python.org/code-of-conduct/ "External link") - [Privacy Notice](https://policies.python.org/pypi.org/Privacy-Notice/ "External link") - [Acceptable Use Policy](https://policies.python.org/pypi.org/Acceptable-Use-Policy/ "External link") *** Status: [all systems operational](https://status.python.org/ "External link") Developed and maintained by the Python community, for the Python community. [Donate today\!](https://donate.pypi.org/) "PyPI", "Python Package Index", and the blocks logos are registered [trademarks](https://pypi.org/trademarks/) of the [Python Software Foundation](https://www.python.org/psf-landing). © 2026 [Python Software Foundation](https://www.python.org/psf-landing/ "External link") [Site map](https://pypi.org/sitemap/) Switch to desktop version Supported by [![](https://pypi-camo.freetls.fastly.net/ed7074cadad1a06f56bc520ad9bd3e00d0704c5b/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f73706f6e736f726c6f676f732f6177732d77686974652d6c6f676f2d7443615473387a432e706e67) AWS Cloud computing and Security Sponsor](https://aws.amazon.com/) [![](https://pypi-camo.freetls.fastly.net/8855f7c063a3bdb5b0ce8d91bfc50cf851cc5c51/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f73706f6e736f726c6f676f732f64617461646f672d77686974652d6c6f676f2d6668644c4e666c6f2e706e67) Datadog Monitoring](https://www.datadoghq.com/) [![](https://pypi-camo.freetls.fastly.net/60f709d24f3e4d469f9adc77c65e2f5291a3d165/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f73706f6e736f726c6f676f732f6465706f742d77686974652d6c6f676f2d7038506f476831302e706e67) Depot Continuous Integration](https://depot.dev/) [![](https://pypi-camo.freetls.fastly.net/df6fe8829cbff2d7f668d98571df1fd011f36192/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f73706f6e736f726c6f676f732f666173746c792d77686974652d6c6f676f2d65684d3077735f6f2e706e67) Fastly CDN](https://www.fastly.com/) [![](https://pypi-camo.freetls.fastly.net/420cc8cf360bac879e24c923b2f50ba7d1314fb0/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f73706f6e736f726c6f676f732f676f6f676c652d77686974652d6c6f676f2d616734424e3774332e706e67) Google Download Analytics](https://careers.google.com/) [![](https://pypi-camo.freetls.fastly.net/d01053c02f3a626b73ffcb06b96367fdbbf9e230/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f73706f6e736f726c6f676f732f70696e67646f6d2d77686974652d6c6f676f2d67355831547546362e706e67) Pingdom Monitoring](https://www.pingdom.com/) [![](https://pypi-camo.freetls.fastly.net/67af7117035e2345bacb5a82e9aa8b5b3e70701d/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f73706f6e736f726c6f676f732f73656e7472792d77686974652d6c6f676f2d4a2d6b64742d706e2e706e67) Sentry Error logging](https://sentry.io/for/python/?utm_source=pypi&utm_medium=paid-community&utm_campaign=python-na-evergreen&utm_content=static-ad-pypi-sponsor-learnmore) [![](https://pypi-camo.freetls.fastly.net/b611884ff90435a0575dbab7d9b0d3e60f136466/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f707970692d6173736574732f73706f6e736f726c6f676f732f737461747573706167652d77686974652d6c6f676f2d5467476c6a4a2d502e706e67) StatusPage Status page](https://statuspage.io/)
Readable Markdown
This package provides a few small extensions of the Bellman-Ford routines in [NetworkX](https://networkx.github.io/), primarily for convenience. ## Installation bellmanford is available on PyPI: ``` pip install bellmanford ``` ## Usage ### bellman\_ford ``` length, nodes, negative_cycle = bellman_ford(G, source, target, weight='weight') ``` Compute shortest path and shortest path lengths between a source node and target node in weighted graphs using the Bellman-Ford algorithm. #### Parameters - G : NetworkX graph - pred : dict - Keyed by node to predecessor in the path - dist : dict - Keyed by node to the distance from the source - source: node label - Source node - target: node label - Target node - weight : string - Edge data key corresponding to the edge weight #### Returns - length : numeric - Length of a negative cycle if one exists. Otherwise, length of a shortest path. Length is inf if source and target are not connected. - nodes : list - Nodes in a negative edge cycle (in order) if one exists. Otherwise nodes in a shortest path. List is empty if source and target are not connected. - negative\_cycle : bool - True if a negative edge cycle exists, otherwise False. #### Examples ``` >>> import networkx as nx >>> G = nx.path_graph(5, create_using = nx.DiGraph()) >>> bf.bellman_ford(G, source=0, target=4) (3, [1, 2, 3, 4], False) ``` ### negative\_edge\_cycle ``` length, nodes, negative_cycle = negative_edge_cycle(G, weight='weight') ``` If there is a negative edge cycle anywhere in G, returns True. Also returns the total weight of the cycle and the nodes in the cycle. #### Parameters - G : NetworkX graph - weight : string, optional (default = 'weight') - Edge data key corresponding to the edge weight #### Returns - length : numeric - Length of a negative edge cycle if one exists, otherwise None. - nodes : list - Nodes in a negative edge cycle (in order) if one exists, otherwise None. - negative\_cycle : bool - True if a negative edge cycle exists, otherwise False. #### Examples ``` >>> import networkx as nx >>> import bellmanford as bf >>> G = nx.cycle_graph(5, create_using = nx.DiGraph()) >>> print(bf.negative_edge_cycle(G)) (None, [], False) >>> G[1][2]['weight'] = -7 >>> print(bf.negative_edge_cycle(G)) (-3, [4, 0, 1, 2, 3, 4], True) ```
Shard59 (laksa)
Root Hash7813724874982801459
Unparsed URLorg,pypi!/project/bellmanford/ s443