Graphgen: A tool for automatic generation of multipartite graphs from arbitrary data