diff python/graph.py @ 270:cdc76d183bcc

first register allocator
author Windel Bouwman
date Mon, 19 Aug 2013 21:14:28 +0200
parents 5f8c04a8d26b
children ea93e0a7a31e
line wrap: on
line diff
--- a/python/graph.py	Sun Aug 18 17:43:18 2013 +0200
+++ b/python/graph.py	Mon Aug 19 21:14:28 2013 +0200
@@ -43,3 +43,8 @@
         self.succ = []
         self.pred = []
 
+    @property
+    def Adj(self):
+        return set(self.succ) | set(self.pred)
+
+