Directed Acyclic Graph (DAG)

March 29, 2023
Read time:

Directed Acyclic Graph (DAG) is an alternative way of organizing transactions that allows for parallel transaction processing and increased network performance.

Structure of the DAG

Directed Acyclic Graph is a data structure consisting of vertices and edges.

The structure of the DAG consists of vertices and edges. A vertex is a circle or single point representing a given event or activity. They all point in the same direction, away from the first vertex.

Edges connect one vertex with another in the graph, represented by a line with an arrow at its end. The order in which they are connected indicates the order in which transactions are processed. Moreover, each edge is both a receiver and a sender.

DAG permits numerous paths between any two vertices, making it helpful in picturing complex connections between entities.

A primary characteristic of the DAG is its parallel structure, meaning each transaction can be verified independently. The parallelism of processing is provided by vertices, which can have several edges (outgoing and incoming).

New transactions are usually implemented on top of older ones, and mining is not required since no blocks exist. The absence of miners also indicates that DAG is more energy efficient.

The use of DAG

A Directed Acyclic Graph (DAG) finds use in multiple fields of computer science and blockchain technology.

In cryptocurrencies, DAG is an alternative form of the traditional blockchain that addresses the limited scalability of the conventional blockchain based on mining. DAG's structure is so efficient and scalable that it can process thousands of transactions per second.

However, combining DAG with PoW, PoS, or other consensus mechanisms can build more efficient and scalable blockchain systems. For example, Hedera Hashgraph combines DAG with a consensus to create a consensus hashgraph that can process thousands of transactions per second while minimizing transaction costs.

Double-spending attacks

One of the fundamental challenges that DAG faces is the security problem in so-called double-spending attacks. DAG can only prevent double-spending attacks if nodes have access to all transactions.


DAG is an interesting alternative to traditional blockchain because it allows transactions to be processed in parallel, improving network performance and scalability. The advantages of DAG are scalability and lack of block mining problems. However, it has a less developed infrastructure and lower popularity compared to traditional blockchains.

Complete quiz
Directed Acyclic Graph (DAG)
Share this article
Explore other articles

Volume-Weighted Average Price (VWAP)

VWAP is the volume-weighted average price of trades that took place in a given time frame. It is used by traders to analyze the current market price and compare it to the value of the weighted average.

Proof of History (PoH)

Proof of History (PoH) is a unique sequence of computation that allows for the cryptographic verification of timestamps between two events, initially introduced in Solana cryptocurrency by its founder, Anatoly Yakovenko.

What is Polygon (MATIC)?

Polygon is a layer 2, Ethereum-based scaling solution, allowing for speedy transactions and low fees. By using a modified Proof-of-Stake consensus algorithm, it enables a consensus to be achieved with every block, instead of processing many blocks.