Home โ€บ Interview Questions โ€บ What is the difference between a directed acyclic โ€ฆ

What is the difference between a directed acyclic graph and a lineage graph?

๐ŸŸก Medium Conceptual Junior level
1Times asked
Aug 2026Last seen
Aug 2026First seen

๐Ÿ’ก Model Answer

A directed acyclic graph (DAG) is a graph with directed edges and no cycles, meaning you cannot start at a node and follow edges to return to the same node. DAGs are used in many computing contexts, such as task scheduling, build systems, and data processing pipelines. A lineage graph, on the other hand, is a specialized DAG that records the provenance of data: each node represents a data artifact or transformation, and edges indicate that one artifact was produced from another. In data processing frameworks like Spark or Flink, the lineage graph tracks how input data is transformed through stages, enabling fault tolerance and incremental recomputation. Thus, while all lineage graphs are DAGs, not all DAGs are lineage graphs; the latter carries semantic meaning about data provenance.

This answer was generated by AI for study purposes. Use it as a starting point โ€” personalize it with your own experience.

๐ŸŽค Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.

Get Assisting AI โ€” Starts at โ‚น500