Skip to main content
QUICK REVIEW

[Paper Review] Enumerating Subgraph Instances Using Map-Reduce

Foto Afrati, Dimitris Fotakis|arXiv (Cornell University)|Aug 2, 2012
Graph Theory and AlgorithmsComputer Science19 references6 citations
TL;DR

This paper presents a single-round Map-Reduce framework for efficiently enumerating all instances of an arbitrary sample graph in a large data graph, minimizing both communication and computation costs. It leverages optimized multiway join techniques and conjunctive query decomposition to achieve communication-optimal performance and provably convertible algorithms with serial-complexity equivalence under degree-bounded graphs.

ABSTRACT

The theme of this paper is how to find all instances of a given "sample" graph in a larger "data graph," using a single round of map-reduce. For the simplest sample graph, the triangle, we improve upon the best known such algorithm. We then examine the general case, considering both the communication cost between mappers and reducers and the total computation cost at the reducers. To minimize communication cost, we exploit the techniques of (Afrati and Ullman, TKDE 2011)for computing multiway joins (evaluating conjunctive queries) in a single map-reduce round. Several methods are shown for translating sample graphs into a union of conjunctive queries with as few queries as possible. We also address the matter of optimizing computation cost. Many serial algorithms are shown to be "convertible," in the sense that it is possible to partition the data graph, explore each partition in a separate reducer, and have the total computation cost at the reducers be of the same order as the computation cost of the serial algorithm.

Motivation & Objective

  • To design a scalable, single-round Map-Reduce algorithm for enumerating all instances of a given sample graph in a large data graph.
  • To minimize communication cost between mappers and reducers by exploiting optimal multiway join techniques for conjunctive queries.
  • To ensure that the total computation cost at reducers matches the complexity of the best serial algorithms, achieving 'convertibility'.
  • To analyze performance under degree constraints, particularly when node degrees are bounded by √m.
  • To extend the framework to labeled and directed graphs, and to explore the limits of efficient parallelization in Map-Reduce.

Proposed method

  • The algorithm translates the sample graph into a union of conjunctive queries (CQs) to minimize the number of queries and reduce communication overhead.
  • It uses a key-hashing strategy to distribute edges across reducers such that all required subgraph components are co-located, minimizing data transfer.
  • The framework applies techniques from [2] for optimal multiway join evaluation in a single Map-Reduce round to reduce communication cost.
  • For computation efficiency, the method partitions the data graph and assigns each partition to a separate reducer, preserving the work complexity of the original serial algorithm.
  • It introduces a condition-based optimization: when certain size constraints on intermediate relations are met, the algorithm switches to a lower-complexity execution path.
  • The approach handles labeled and directed graphs by representing them as collections of relations and expressing subgraph instances as unions of CQs.

Experimental results

Research questions

  • RQ1Can all instances of an arbitrary sample graph be enumerated in a single Map-Reduce round with communication cost close to optimal?
  • RQ2How can the number of conjunctive queries used to represent a sample graph be minimized to reduce communication and computation overhead?
  • RQ3Under what conditions can a serial subgraph enumeration algorithm be converted into a parallel Map-Reduce algorithm with equivalent total computation cost?
  • RQ4Does limiting node degree in the data graph to √m lead to provably better convertible algorithms with lower communication and computation costs?
  • RQ5To what extent can the framework be extended to handle labeled or directed graphs while maintaining efficiency and correctness?

Key findings

  • The proposed algorithm achieves communication cost that matches the theoretical lower bound for multiway join evaluation, making it optimal in communication.
  • For data graphs with node degrees bounded by √m, the paper presents improved convertible algorithms whose running time matches the known lower bounds on subgraph occurrences.
  • The framework ensures that the total computation cost at reducers is of the same order as the best-known serial algorithms, achieving 'convertibility'.
  • When the sizes of intermediate relations in the query plan satisfy a specific inequality (e.g., n₁n₅n₃ ≤ n₂n₄), the algorithm switches to a lower-complexity execution path with cost n₁n₅n₃, which is both an upper and lower bound in such cases.
  • The method generalizes to labeled and directed graphs by expressing them as unions of conjunctive queries, preserving efficiency through the same core optimization techniques.
  • The number of reducers used is bounded by the number of distinct keys, and the framework shows that minimizing the number of reducers leads to reduced communication cost under fixed reducer count.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.