Skip to content

Commit

Permalink
Add @value property
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jul 21, 2022
1 parent e808963 commit fa38410
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pymathics/graph/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ def get_sort_key(self, pattern_sort=False):
else:
return hash(self)

@property
def value(self):
return self.G

@property
def vertices(self):
return self.G.nodes
Expand Down

0 comments on commit fa38410

Please sign in to comment.