add constructor hypergraph and dex