diff options
author | Mridul Seth <seth.mridul@gmail.com> | 2015-12-30 23:01:11 +0530 |
---|---|---|
committer | Mridul Seth <seth.mridul@gmail.com> | 2015-12-30 23:01:11 +0530 |
commit | 9a43cd4866fb5c0231282065d5959d0e4d06420e (patch) | |
tree | 97845d94f24fc9d9cd12d76fe10f97924e94cbda /networkx/exception.py | |
parent | 6e2db3386bc98285eacd52b6d42bcb547f59bf9d (diff) | |
download | networkx-9a43cd4866fb5c0231282065d5959d0e4d06420e.tar.gz |
Add exception class NodeNotFound
Diffstat (limited to 'networkx/exception.py')
-rw-r--r-- | networkx/exception.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/networkx/exception.py b/networkx/exception.py index 72696b24..4c1a1ec0 100644 --- a/networkx/exception.py +++ b/networkx/exception.py @@ -52,3 +52,9 @@ class NetworkXUnbounded(NetworkXAlgorithmError): class NetworkXNotImplemented(NetworkXException): """Exception raised by algorithms not implemented for a type of graph.""" + +class NotFound(NetworkXException): + """Exception""" + +class NodeNotFound(NotFound): + """Exception raised if node is not present in the graph""" |