Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bigtree/node/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Node(BaseNode):
`Node` methods

1. ``show()``: Print tree to console
2. ``hshow()``: Print tree in horizontal orientation to console

----

Expand Down Expand Up @@ -213,6 +214,12 @@ def show(self, **kwargs: Any) -> None:

print_tree(self, **kwargs)

def hshow(self, **kwargs: Any) -> None:
"""Print tree in horizontal orientation to console, takes in same keyword arguments as `hprint_tree` function"""
from bigtree.tree.export import hprint_tree

hprint_tree(self, **kwargs)

def __getitem__(self, child_name: str) -> T:
"""Get child by name identifier

Expand Down
Loading