---
title: "Directed Acyclic Graph (DAG) — definition | Nuri Glossary"
description: "A ledger of transactions linked without cycles, allowing parallel confirmation instead of sequential blocks."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/directed-acyclic-graph"
---

# Directed Acyclic Graph (DAG)

A ledger of transactions linked without cycles, allowing parallel confirmation instead of sequential blocks.

## Basically

A DAG lets many transactions connect at once instead of waiting in one line of blocks. Each transaction points back to earlier ones, and the links never form a loop.

## Key Takeaways

- A directed acyclic graph (DAG) is a data structure made of vertices connected by directed edges with no cycles. Multiple transaction paths can be processed in parallel rather than sequentially in blocks.
- DAG-based networks such as IOTA, Hedera Hashgraph, and Nano aim for higher throughput and lower fees than traditional blockchains. They face trade-offs in security guarantees and transaction ordering.
- Blockchain finality relies on block confirmations or validator votes. DAG finality depends on cumulative transaction weight or representative voting, which creates different security assumptions when network activity is low.

## What Is a Directed Acyclic Graph (DAG)?

A directed acyclic graph is a data structure from graph theory made of vertices (nodes) connected by edges (links). Every edge has a direction, and no sequence of edges forms a closed loop. In mathematical terms, a DAG is a finite directed graph G = (V, E) where no path starts and ends at the same vertex v, so the graph can always be arranged in a topological order: a linear sequence where every edge points forward.
DAGs offer an alternative to the linear chain of blocks used by Bitcoin and other blockchains in cryptocurrency and distributed ledger technology. A DAG-based ledger lets each transaction reference multiple previous transactions directly instead of grouping transactions into sequential blocks that each reference exactly one predecessor. The result is a web-like structure where many transactions can be added simultaneously and validated in parallel rather than waiting for the next block.
A traditional blockchain is technically a special case of a DAG: a linear graph where each block points to exactly one parent. DAG-based protocols generalise this by allowing multiple parents per transaction, trading the simplicity of linear ordering for potential throughput gains.

## How It Works

A DAG-based distributed ledger adds transactions differently from blockchain systems. Each transaction directly references earlier transactions rather than waiting for inclusion in a block.
Every participant acts as both a user and a validator. No dedicated miners or validators compete to produce blocks. Transaction throughput scales with network activity: the more transactions submitted, the faster each one gets confirmed.

## Graph Structure and Topological Ordering

Directed edges in a DAG establish a partial ordering of transactions. A blockchain gives every transaction a clear position in a linear sequence, but a DAG only guarantees that transaction B came before transaction A if A references B. Two transactions that do not reference each other directly or indirectly have no defined relative order.
Ordering ambiguity creates both the performance advantages and the primary technical challenge of DAGs. A topological sort can produce a valid linear ordering of all transactions, but multiple valid orderings may exist. Different nodes may disagree on which ordering is canonical.
Transactions B through F in the DAG example above can all exist concurrently. Every transaction in the blockchain model must wait for its block's turn in the chain.

## Consensus Without Blocks

DAG-based protocols must solve consensus differently from blockchains. Without discrete blocks and a longest-chain rule, DAGs use alternative mechanisms to determine which transactions are valid and in what order.

## DAG-Based Cryptocurrencies

Several cryptocurrency projects have adopted DAG structures. Each uses a distinct approach to consensus, ordering, and security.

## IOTA (The Tangle)

IOTA's Tangle is one of the earliest and best-known DAG implementations. Each transaction must approve two previous transactions, creating a web of interconnected validations. The protocol uses a tip selection algorithm to determine which transactions a new transaction should reference, favouring transactions with higher cumulative weight.
IOTA was designed for Internet of Things (IoT) micropayments with zero transaction fees. Every user validates two transactions when submitting one, so the network is self-sustaining without miner rewards. The original Tangle required a centralised Coordinator node to issue periodic milestone transactions that finalised the ledger state, while IOTA 2.0 introduced a decentralised consensus protocol to remove this dependency through a committee-based approach to transaction ordering and finality.

## Hedera Hashgraph

Hedera uses a patented hashgraph consensus algorithm. It achieves asynchronous Byzantine Fault Tolerance (aBFT) through two mechanisms: gossip-about-gossip and virtual voting.
Gossip-about-gossip lets nodes share both transactions and the history of which nodes communicated with which, building a DAG of communication events. Each node can use this shared knowledge of the communication graph to determine independently how every other node would vote on transaction ordering without actually exchanging votes. Virtual voting enables consensus with minimal network overhead.
Hedera reports throughput capacity of 10,000 or more transactions per second for its consensus service, with finality typically achieved within 3 to 5 seconds. A council of up to 39 organisations governs the network. Hedera is therefore a permissioned network with known validator identities rather than a fully permissionless system.

## Nano (Block-Lattice)

Nano uses a unique DAG variant called a block-lattice, where each account has its own blockchain (account-chain). A send transaction on the sender's chain and a corresponding receive transaction on the recipient's chain together form a complete transfer. Transactions on different account-chains can therefore be processed entirely in parallel.
Nano uses Open Representative Voting (ORV) to reach consensus on conflicting transactions such as double-spend attempts. Account holders delegate their voting weight to representative nodes, which vote on conflicting transactions in real time. Nano achieves sub-second confirmation times and charges zero transaction fees because the minimal computational cost of validating transactions replaces the need for fee-based incentives.

## Fantom (Lachesis)

Fantom developed the Lachesis consensus protocol, which uses a DAG of event blocks to achieve asynchronous Byzantine Fault Tolerance. Validator nodes create event blocks that reference previous events from both themselves and other validators, forming a DAG. The protocol extracts a final ordering of transactions from this DAG without requiring synchronous communication rounds.
Fantom has since evolved its architecture with the Sonic chain. Sonic builds on the DAG-based consensus foundations while optimising for EVM compatibility and faster finality in the one-second range.

## IoT and Micropayments

DAGs suit the high-frequency, low-value transactions typical of IoT environments. Sensors and devices that exchange small amounts of data or value benefit from zero-fee transactions and simultaneous processing of many transfers. IOTA was specifically designed for machine-to-machine payments where traditional blockchain fees would exceed the transaction value.

## High-Throughput Applications

Applications requiring thousands of transactions per second can use DAG architectures, including supply chain tracking, data marketplaces, and real-time settlement systems. Parallel processing avoids the bottleneck of sequential block production that limits traditional blockchain throughput.

## Feeless Value Transfer

Networks like Nano show how DAGs enable feeless transfers. The network sustains itself without extracting fees by eliminating miners and block rewards and requiring each user to contribute minimal computational work when transacting. Feeless transfers are particularly relevant for everyday micropayments and regions where even small fees create barriers.

## Finality in DAG Networks

Finality is one of the most significant design decisions in a DAG network. It also marks a key distinction from blockchain systems.
Bitcoin finality is probabilistic: more block confirmations make a transaction less likely to be reversed, but the probability never reaches exactly zero. BFT-based blockchains such as those using proof of stake can offer deterministic finality. A transaction becomes irreversible once a supermajority of validators attests to it.
DAG networks use varied approaches to finality. IOTA's Tangle considers a transaction final when enough subsequent transactions have directly or indirectly referenced it, giving it cumulative weight that makes reversal statistically impractical. Hedera achieves deterministic finality through virtual voting once the DAG structure proves that a supermajority of stake has observed the transaction, while Nano's ORV provides fast deterministic finality through explicit representative votes on any conflicting transactions.
Weight-based finality models like the original Tangle are weaker during periods of low network activity because fewer transactions mean slower weight accumulation and longer time to finality. Vote-based models such as Hedera and Nano avoid this issue. They instead reintroduce reliance on identified validators or representatives.

## Security at Low Network Activity

DAG protocols that rely on transaction volume for security face a bootstrapping problem. Few submitted transactions make the graph and its weight grow slowly, so an attacker with moderate resources can potentially generate enough transactions to outweigh the honest graph. IOTA originally required its Coordinator as a centralised fallback against attacks during periods of low throughput, and achieving strong security at low activity levels remains an active area of research in DAG protocol design.

## Transaction Ordering Challenges

Transaction ordering is fundamentally harder in a DAG without the natural ordering provided by sequential blocks. Two conflicting transactions can exist in different branches with no direct path between them, so the network must resolve the conflict through additional mechanisms. Different nodes may temporarily disagree on which transaction is valid, creating consistency windows that applications must account for.

## Coordinator and Centralisation Concerns

Several DAG projects have relied on coordinator nodes or governing councils to provide security guarantees that the pure DAG structure could not deliver alone. IOTA's original Coordinator, Hedera's governing council, and various committee-based finality mechanisms all trade decentralisation for practical security. Some projects have made progress towards removing these centralised components, but the pattern suggests that pure DAG structures face inherent challenges in achieving trustless consensus without supplementary mechanisms.

## Double-Spend Prevention

Double-spend prevention is more complex in a DAG than in a blockchain. Miners in a linear chain choose one of two conflicting transactions and discard the other, but two conflicting transactions can exist simultaneously in separate DAG branches. The network must converge on the valid transaction through weight accumulation, voting, or other resolution mechanisms, and the speed and reliability of this process directly determine the system's practical security.

## Why It Matters

DAGs represent one of the most significant architectural alternatives to traditional blockchain design. They address real limitations: Bitcoin's base layer processes roughly 7 transactions per second, and even high-throughput blockchains face fundamental constraints from sequential block production. DAGs show that distributed consensus does not require a linear chain of blocks.
Trade-offs remain equally real. Clear transaction ordering and well-understood finality models give blockchains strong security properties that are harder to achieve in DAG structures. Most production DAG networks have converged towards hybrid designs that combine DAG-based transaction processing with committee or validator-based finality layers.
Builders evaluating distributed ledger architectures must choose between blockchain and DAG designs according to specific requirements. High-throughput, low-fee applications that can tolerate different finality models may benefit from DAG designs, while applications requiring strong ordering guarantees, proven security models, and maximum decentralisation may be better served by blockchain-based systems. These systems can potentially be combined with Layer 2 scaling solutions like Spark that inherit the base layer's security properties while enabling higher throughput.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
