diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-04-19 18:02:10 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-04-19 18:02:10 +0200 |
| commit | 7d4100ea290c0bd60ee225a401786bc856d92615 (patch) | |
| tree | cbba60755e94e26ac29aa2574d93358c1c73ab5c /miasm2/core/graph.py | |
| parent | 145c218af968bea37ecc8a89585686e68566a875 (diff) | |
| download | miasm-7d4100ea290c0bd60ee225a401786bc856d92615.tar.gz miasm-7d4100ea290c0bd60ee225a401786bc856d92615.zip | |
Fix __ne__ calls
Diffstat (limited to 'miasm2/core/graph.py')
| -rw-r--r-- | miasm2/core/graph.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm2/core/graph.py b/miasm2/core/graph.py index b74717da..ce17fc75 100644 --- a/miasm2/core/graph.py +++ b/miasm2/core/graph.py @@ -57,6 +57,9 @@ class DiGraph(object): return all((self._nodes == graph.nodes(), sorted(self._edges) == sorted(graph.edges()))) + def __ne__(self, other): + return not self.__eq__(other) + def add_node(self, node): """Add the node @node to the graph. If the node was already present, return False. |