added Hypergraph(Matrix) constructor