From a7ca2c4f4cd4f6f88c805bf89d9ee6ac55941a89 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 15 Jul 2014 18:20:49 +0200 Subject: before msgpack --- fast/hypergraph.hh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'fast/hypergraph.hh') diff --git a/fast/hypergraph.hh b/fast/hypergraph.hh index 24e63f5..e5f91cb 100644 --- a/fast/hypergraph.hh +++ b/fast/hypergraph.hh @@ -17,16 +17,18 @@ using namespace std; typedef double score_t; typedef double weight_t; +typedef size_t id_t; namespace Hg { + class Node; -class Hyperedge { +class Edge { public: - Node* head; - vector tails; + id_t head; + vector tails; score_t score; vector f; unsigned int mark; @@ -48,8 +50,8 @@ class Node { unsigned int left; unsigned int right; score_t score; - vector outgoing; - vector incoming; + vector outgoing; + vector incoming; string s(); @@ -60,10 +62,9 @@ class Node { class Hypergraph { public: - vector nodes; - vector edges; - unsigned int arity_; - map nodes_by_id; + vector nodes; + vector edges; + unsigned int arity_; unsigned int arity(); void reset(); -- cgit v1.2.3