str2d.traverse_path

str2d.traverse_path(path, box_style, depth=0)[source]

Traverse a path and return a string representation of the path. This function is a recursive function that traverses a path and returns a string

Parameters:
  • path (Path) – The path to traverse.

  • box_style (BoxStyle) – The style connecting lines.

  • depth (int, optional) – The depth to traverse, by default 0.

Returns:

The string representation of the path.

Return type:

str