Mercurial > lcfOS
comparison python/graph.py @ 270:cdc76d183bcc
first register allocator
author | Windel Bouwman |
---|---|
date | Mon, 19 Aug 2013 21:14:28 +0200 |
parents | 5f8c04a8d26b |
children | ea93e0a7a31e |
comparison
equal
deleted
inserted
replaced
269:5f8c04a8d26b | 270:cdc76d183bcc |
---|---|
41 def __init__(self, g): | 41 def __init__(self, g): |
42 self.g = g | 42 self.g = g |
43 self.succ = [] | 43 self.succ = [] |
44 self.pred = [] | 44 self.pred = [] |
45 | 45 |
46 @property | |
47 def Adj(self): | |
48 return set(self.succ) | set(self.pred) | |
49 | |
50 |