Skip to content

Change NodeLabel into a synonym for str - #159

Draft
davidweichiang wants to merge 3 commits into
mainfrom
no_node_label_name
Draft

davidweichiang wants to merge 3 commits into
mainfrom
no_node_label_name

Conversation

@davidweichiang

@davidweichiang davidweichiang commented Jul 23, 2022

Copy link
Copy Markdown
Collaborator

In #140 I outlined why I thought EdgeLabel should be restructured. This PR does the easier flip side, which is to restructure NodeLabel. Unlike EdgeLabel, NodeLabel doesn't have any extra information other than a string, so this PR just makes NodeLabel into a str.

  • Lots of possibly unrelated type annotations added, to help mypy track down all the uses of NodeLabel.
  • node_labels is just a set of NodeLabels and can be accessed directly instead of via getter and setter methods.

@davidweichiang davidweichiang changed the title WIP: Change NodeLabel into a synonym for str Change NodeLabel into a synonym for str Jul 23, 2022
@davidweichiang
davidweichiang marked this pull request as draft August 15, 2022 20:17
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