Text this: Graph compression algorithm based on a two-level index structure