Work on decreasing memory requirement for outputting hypergraph