Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Commit

Permalink
#4 MAJOR: Changed Graph definitions to work with doubly linked graph …
Browse files Browse the repository at this point in the history
…between Nodes and Paths. Paths get built from Node declarations. Still needs work on repr()
  • Loading branch information
josiahseaman committed Jul 10, 2019
1 parent d755aea commit 9712b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __len__(self):
def __repr__(self):
"""Paths representation is sorted because set ordering is not guaranteed."""
return repr(self.seq) + \
', {' + ', '.join(str(i) for i in sorted(list(self.paths))) + '}'
', {' + ', '.join(str(i) for i in list(self.paths)) + '}'

def __eq__(self, other):
if not isinstance(other, Node):
Expand Down

0 comments on commit 9712b00

Please sign in to comment.