pombreda / pydot

Automatically exported from code.google.com/p/pydot
MIT License
0 stars 0 forks source link

simplify bug #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
simplify=True does not work because class Edge does not provide an
appropriate __hash__ function, so that the test 

if self.obj_dict.get('simplify', False) and edge in edges_done:
                    continue

tests only for reference identify.

This patch helps:
836a835,836
>     def __hash__(self):
>         return hash(self.get_source()+self.get_destination())
1457,1458c1457,1458
<
<                 if self.obj_dict.get('simplify', False) and elm in
edges_done:

---
>
>                 if self.obj_dict.get('simplify', False) and edge in
edges_done:

Original issue reported on code.google.com by willi.ri...@gmail.com on 17 Feb 2009 at 10:05

GoogleCodeExporter commented 9 years ago

Original comment by ero.carr...@gmail.com on 30 Oct 2010 at 11:32