eta.plan.visualize_plan

visualize_plan(plan_node, before=3, after=5, schemas=False, vert=False, dir='io/')[source]

Visualize a plan as a graph using graphviz dot.

Parameters:
  • before (int, default=3) – The number of past surface steps to include in the graph.

  • after (int, default=5) – The number of future surface steps to include in the graph.

  • schemas (bool, default=False) – Whether to also display schema predicates in the labels for each step.

  • vert (bool, default=False) – Whether to rotate the direction of the graph to left-right.

  • dir (str, default='io/') – The directory to store the generated graph image.

Notes

TODO: it may be better to move this function elsewhere in order to have a cleaner dependency structure.