GraphResponse#

class scikitplot.corpus.GraphResponse(nodes=(), edges=(), errors=(), hops_completed=0)[source]#

The outcome of a traversal, including why it stopped.

Notes

Developer. A budget-exhausted traversal is DEGRADED with a naming ErrorRecord, never a silently truncated result. A truncated traversal that looks complete is the same defect class as a filter that returns everything (F-R07-01) – and this codebase has now removed that shape from six separate sites.

Parameters:
edges: tuple[GraphEdge, ...] = ()#
errors: tuple[ErrorRecord, ...] = ()#
property exhausted_budgets: list[str]#

Names of the budgets that stopped this traversal.

hops_completed: int = 0#
nodes: tuple[GraphNode, ...] = ()#
property status: str#

"success", "empty" or "degraded".

to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]