/opt/imh-python/lib/python3.9/site-packages/pygraph
NameSizeModeActions
classes/-0755rm
functions/-0755rm
helpers/-0755rm
__pycache__/-0755rm
exceptions.py8210644editdlrm
predefined_graphs.py57460644editdlrm
render.py10180644editdlrm
__init__.py13990644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/pygraph/exceptions.py (821B)
"""Exceptions used by the library.""" class PygraphError(Exception): """Root exception class for all library exceptions. Only used for subclassing.""" pass class NonexistentNodeError(PygraphError): """Thrown when a node does not exist within a graph.""" def __init__(self, node_id): self.node_id = node_id def __str__(self): return 'Node "{}" does not exist.'.format(self.node_id) class NonexistentEdgeError(PygraphError): """Thrown when an edge does not exist within a graph.""" def __init__(self, edge_id): self.edge_id = edge_id def __str__(self): return 'Edge "{}" does not exist.'.format(self.edge_id) class DisconnectedGraphError(PygraphError): """Thrown when a graph is disconnected (and such is unexpected by an algorithm).""" pass