diff options
author | Chris Dyer <cdyer@allegro.clab.cs.cmu.edu> | 2014-01-15 23:33:58 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@allegro.clab.cs.cmu.edu> | 2014-01-15 23:33:58 -0500 |
commit | 7f5aa4fbf1165b769265376269e0b46dfbb8b342 (patch) | |
tree | bf1b3a3a3d1089fe6a1eb09a0d739b478f61eed0 /python/cdec/hypergraph.pxi | |
parent | 7a1db9fe7cb79fdb5544a33ddc2f9f3612adf1ae (diff) | |
parent | aa5520768619eb15e0c1c70addbfaff0f150c345 (diff) |
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'python/cdec/hypergraph.pxi')
-rw-r--r-- | python/cdec/hypergraph.pxi | 4 |
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 |