summaryrefslogtreecommitdiff
path: root/python/cdec/hypergraph.pxi
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-01-15 20:33:07 -0500
committerChris Dyer <redpony@gmail.com>2014-01-15 20:33:07 -0500
commitaa5520768619eb15e0c1c70addbfaff0f150c345 (patch)
treeb81fa2e3d1ae3e79ece18024aae6a499f4d3f3ea /python/cdec/hypergraph.pxi
parentb1628d8bedb8a4145c77ed5917999379fc99a5d5 (diff)
parent0ddc951bc8990c1253e6a873848ed69321615e0a (diff)
Merge branch 'master' of https://github.com/redpony/cdec
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