Automatic multi-partite graph generation from arbitrary data