summaryrefslogtreecommitdiff
path: root/python/cdec/hypergraph.pxi
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2013-11-22 13:58:35 +0100
committerPatrick Simianer <p@simianer.de>2013-11-22 13:58:35 +0100
commit642ef236b42199c230e770a22c190836e2af0cf1 (patch)
treeb3f449ecdeb01f990be38ce06fd2196b32f1686e /python/cdec/hypergraph.pxi
parentd32361ce37f794ae92f852ae2c7c3e6ef440ff07 (diff)
typos and minor additions
Diffstat (limited to 'python/cdec/hypergraph.pxi')
-rw-r--r--python/cdec/hypergraph.pxi4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/cdec/hypergraph.pxi b/python/cdec/hypergraph.pxi
index 4a709d32..91cc8eec 100644
--- a/python/cdec/hypergraph.pxi
+++ b/python/cdec/hypergraph.pxi
@@ -252,6 +252,10 @@ cdef class HypergraphNode:
self.node = &hg.nodes_[i]
return self
+ property id:
+ def __get__(self):
+ return self.node.id_
+
property in_edges:
def __get__(self):
cdef unsigned i