瀏覽代碼

Start diffing

master
Pete Shadbolt 8 年之前
父節點
當前提交
a8e9a9eae4
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. +9
    -1
      abp/graphstate.py

+ 9
- 1
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



Loading…
取消
儲存