Skip to content

adding to/from Penman/Graph/Tree convenience methods#3

Open
chanind wants to merge 1 commit into
mainfrom
aliased-transforms
Open

adding to/from Penman/Graph/Tree convenience methods#3
chanind wants to merge 1 commit into
mainfrom
aliased-transforms

Conversation

@chanind

@chanind chanind commented Jan 3, 2024

Copy link
Copy Markdown
Owner

The transformations between penman strings / graphs / trees have non-obvious names, so this PR adds aliases to the Tree and Graph classes to make these transformations more obvious. These include:

  • Graph.fromPenman(): equivalent of decode()
  • graph.toPenman(): equivalent of encode()
  • graph.toTree(): equivalent of configure()
  • Tree.fromPenman(): equivalent of parse()
  • tree.toPenman(): equivalent of format()
  • tree.toGraph(): equivalent of interpret()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant