From a8e9a9eae4276258a9d0b29334b4dd82c2695dc8 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 16 May 2016 20:04:58 +0100 Subject: [PATCH] Start diffing --- abp/graphstate.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/abp/graphstate.py b/abp/graphstate.py index 0fb9ea7..0970a25 100644 --- a/abp/graphstate.py +++ b/abp/graphstate.py @@ -13,7 +13,7 @@ except ImportError: print "Could not import networkx: layout will not work" -class GraphState(object): +class BaseGraphState(object): def __init__(self, nodes = []): self.ngbh = {} @@ -231,3 +231,11 @@ class GraphState(object): def __eq__(self, other): """ Check equality between graphs """ return self.ngbh == other.ngbh and self.vops == other.vops + +class DiffedGraphState(BaseGraphState): + pass + +class GraphState(BaseGraphState): + pass + +