fixed Hypergraph constructor bug