A follow graph is a directed graph (or digraph) that models asymmetric, one-way connections within a social or information network. In this structure, nodes represent entities like users, wallets, or accounts, while directed edges represent follow relationships. For example, if User A follows User B, an edge points from A to B, but not necessarily from B to A. This is distinct from a symmetric friendship graph, where connections are mutual. Follow graphs are foundational to platforms like Twitter, Mastodon, and Lens Protocol, where they dictate content visibility and feed algorithms.
Follow Graph
What is a Follow Graph?
A data structure that maps directional relationships between entities in a network, such as users following other users or accounts.
In blockchain and web3 contexts, the follow graph is a critical primitive for decentralized social networks (DeSo) and on-chain reputation systems. Here, the graph's edges—the follow actions—are often recorded as immutable transactions or events on a blockchain or decentralized data protocol. This creates a transparent, user-owned social graph that is portable across applications. Key implementations include using smart contracts to manage follow NFTs, storing graph data on decentralized storage like IPFS or Ceramic, and leveraging graph-indexing protocols like The Graph for efficient querying of these relationships.
The structure of a follow graph enables several core functionalities: content curation (determining whose posts a user sees), influence measurement (calculating metrics like follower count or PageRank), and community discovery. Analysts can traverse the graph to identify key influencers, map information flow, and detect clusters or communities. In token-curated registries or DAOs, a user's position in the follow graph can inform governance weight or reputation scores, creating sybil-resistant mechanisms based on organic, attested social connections rather than just token holdings.
How a Follow Graph Works
A technical overview of the data structure that maps social connections in decentralized networks, distinct from the friend graph model.
A follow graph is a directed graph data structure that models asymmetric relationships where one user (a follower) subscribes to the updates of another user (a followee) without requiring mutual consent. This creates a one-way, unidirectional connection, contrasting with the mutual, bidirectional links of a friend graph. In blockchain and Web3 contexts, such as Farcaster or Lens Protocol, these graphs are often stored on-chain or in decentralized networks, making the social connections portable, user-owned, and composable across different applications.
The mechanics are defined by a simple edge list where each edge points from a follower to a followee, represented as (follower_address, followee_address). This structure enables efficient querying for key social metrics: a user's out-degree (who they follow) and in-degree (their followers). Platforms use this to construct personalized feeds by traversing the graph—aggregating content from a user's direct followees or employing algorithms that also include content from second-degree connections (followers-of-followed).
Implementing a follow graph on a blockchain, like Ethereum, typically involves a smart contract with functions to follow and unfollow, which emit events and update the persistent graph state. This on-chain storage is crucial for interoperability and user sovereignty, as it prevents platform lock-in. However, storing large graph data on-chain can be expensive, leading to hybrid designs where only the critical relationship attestations are on-chain, while heavier content is stored off-chain in systems like IPFS or Arweave, referenced via content identifiers (CIDs).
From a network analysis perspective, follow graphs reveal influencer patterns through high in-degree nodes and can identify communities via clustering algorithms. In decentralized social (DeSo) protocols, this graph is a fundamental primitive that developers can compose into new applications—imagine a DAO tool that automatically grants voting power based on a user's follower count or a curation app that surfaces topics trending within one's specific graph neighborhood, all without asking users to rebuild their social network from scratch.
Key Features of a Follow Graph
A follow graph is a directed graph data structure that maps relationships between entities, such as users, wallets, or smart contracts, within a decentralized network. Its core features enable novel social and financial primitives.
Directed Edges
A follow graph uses directed edges (or arcs) to represent one-way relationships. An edge from Node A to Node B indicates that A follows B, but not necessarily the reverse. This creates an asymmetric relationship model, distinct from the mutual connections in a traditional social graph.
- Example: Wallet
0x123can follow the activity of DeFi protocol0xABCwithout0xABCneeding to follow back.
On-Chain Verifiability
Relationships in a blockchain-based follow graph are recorded as on-chain transactions or state changes (e.g., in a smart contract). This makes the graph publicly verifiable, immutable, and censorship-resistant. Anyone can audit the entire graph's structure and history.
- Implementation: A user might send a transaction to a registry contract to emit a
Followed(address follower, address followed)event.
Composability & Programmability
As an on-chain primitive, a follow graph is composable. Other smart contracts and applications can permissionlessly read its state to build new features. This enables programmable social logic, such as:
- Curating token-gated content feeds.
- Calculating social reputation scores.
- Automating actions based on who a user follows.
Graph Traversal & Analytics
The structure allows for powerful graph traversal algorithms to uncover insights. Developers can query for:
- In-degree/Out-degree: The number of followers/following for an address.
- Neighborhoods: The set of addresses within n hops of a target.
- Influence Metrics: Identifying key influencers via algorithms like PageRank applied to the graph of wallets.
Sovereign Identity & Portability
In a decentralized follow graph, the node (e.g., a wallet address) represents a sovereign identity. The relationships a user establishes are portable across any application that reads the same graph contract, preventing platform lock-in. This contrasts with Web2 social graphs owned by centralized platforms.
Sybil Resistance & Attestations
A raw on-chain follow graph can be susceptible to Sybil attacks (creating many fake identities). Advanced implementations integrate attestation layers (e.g., from decentralized identity protocols) to add weight or verification to edges, signaling that a follow relationship is meaningful or comes from a verified entity.
Follow Graphs in Web3 Ecosystems
A follow graph is a decentralized data structure that maps user-to-user connections, forming the foundational social layer for applications built on blockchain networks.
Core Data Structure
A follow graph is a directed graph where nodes represent user accounts (typically wallet addresses) and edges represent follow relationships. This structure is stored on-chain or in decentralized storage, making it a portable, user-owned social graph. Unlike centralized platforms, the connections are not siloed within a single application.
On-Chain vs. Off-Chain Storage
Implementation varies by protocol:
- On-Chain (e.g., Lens Protocol): Follow NFTs are minted as non-transferable tokens, making the graph fully verifiable and immutable on the blockchain.
- Off-Chain with On-Chain Roots (e.g., Farcaster): The social graph is stored in a decentralized hub, but user identity and cryptographic signatures root the data in a blockchain like Ethereum or Optimism for security.
Key Applications
Follow graphs enable new Web3-native features:
- Content Curation & Discovery: Feeds are algorithmically generated based on whom you follow.
- Reputation & Sybil Resistance: A robust follow graph helps identify real users versus bots.
- Decentralized Social Feeds: Applications like Lens and Farcaster use the graph to power interoperable social media.
- Governance: Weighting votes based on network influence within a community's graph.
Contrast with Friend.tech's 'Key' Model
Friend.tech uses a financialized model where connections are represented as tradable "keys," creating a weighted, directed graph based on economic stake. This differs from the typical follow graph's binary (follow/not follow) or weighted-by-trust model, introducing price as a proxy for influence or access.
Technical Challenges
Building scalable follow graphs presents hurdles:
- Cost & Scalability: Storing vast graph data on-chain is expensive; layer-2 solutions are often required.
- Spam Resistance: Preventing Sybil attacks (creating many fake accounts) requires mechanisms like proof-of-personhood or stake.
- Graph Query Efficiency: Efficiently traversing a large, decentralized graph for real-time feeds is a non-trivial engineering problem.
Follow Graph
A data structure that maps directional relationships between entities, such as users, accounts, or smart contracts, within a decentralized network.
A follow graph is a directed graph data structure that explicitly models one-way, asymmetric relationships, such as "user A follows user B." In web3 and decentralized social (DeSo) protocols like Lens Protocol and Farcaster, this structure underpins the social layer, enabling features like feeds, notifications, and content discovery without relying on a central database. Unlike a friendship graph which implies mutual connection, a follow graph captures the intent and attention flow of users, making it fundamental for modeling influence, reputation, and algorithmic curation in open networks.
Technically, a follow graph is often implemented using an adjacency list or stored as a set of edges in a decentralized database or smart contract. Each edge is a tuple (follower, followee) that can be queried to reconstruct a user's social circle. This structure enables efficient traversal for generating personalized timelines—collecting posts from all followees—and calculating metrics like follower count or network centrality. The integrity of these relationships is secured on-chain or via cryptographic signatures, ensuring users own their social graph and can potentially port it between compatible applications.
The follow graph is a core primitive for social finance (SocialFi) and community governance. Projects leverage it to weight voting power, distribute rewards, or create token-gated access based on social capital. For instance, a user's influence score might be derived from their position in the graph using algorithms like PageRank. This moves beyond simple follower counts to measure the quality and structure of connections, enabling more sophisticated decentralized applications for content moderation, curation markets, and trust-based discovery.
Security & Sybil Considerations
A follow graph is a data structure mapping social connections, which, when integrated with blockchain, creates a powerful tool for identity and reputation. Its security and resistance to Sybil attacks are paramount for its utility.
Sybil Attack Vector
A Sybil attack occurs when a single entity creates many fake identities to gain disproportionate influence. In a follow graph, this could manifest as:
- Creating thousands of bot accounts to follow a target, artificially inflating their reputation.
- Using a network of fake accounts to manipulate governance voting or content curation.
- The core challenge is distinguishing between legitimate, unique users and malicious, low-cost pseudonyms.
Proof-of-Personhood Solutions
These are cryptographic and social mechanisms designed to establish a user's unique human identity, forming a foundational defense for the graph.
- Biometric Verification: Using devices (e.g., smartphones) to verify liveness and uniqueness (e.g., Worldcoin's Orb).
- Social Graph Attestation: Leveraging existing trusted connections (like on-chain followers) to vouch for new users in a decentralized manner.
- Government ID Binding: Linking a verified legal identity to an on-chain account, though this compromises pseudonymity.
Economic & Staking Barriers
Imposing a cost to participate raises the financial barrier for attackers. Key methods include:
- Staking for Actions: Requiring users to stake a token to follow, post, or vote. Malicious behavior leads to slashing.
- Transaction Fees: Even minimal gas fees for on-chain interactions make large-scale Sybil operations economically unfeasible.
- Non-Transferable Soulbound Tokens (SBTs): Issuing unique, non-sellable tokens as proof of membership or completion of a verification step, preventing attackers from buying reputation.
Graph Analysis & Clustering
Analyzing the structure of the follow graph itself can detect Sybil clusters. Techniques involve:
- Topology Analysis: Identifying tightly interconnected groups of accounts with few connections to the legitimate, organic graph.
- Behavioral Patterns: Detecting accounts that follow/unfollow in synchronized patterns or exhibit non-human interaction timing.
- Machine Learning Models: Training algorithms to classify accounts based on connection patterns, transaction history, and content. The legitimacy of the seed set of known-good accounts is critical for this approach.
Decentralized Attestation & Trust
This approach distributes the verification process across the network's participants.
- Users with established reputation can issue attestations or follows to new users they trust, creating a web-of-trust.
- Systems like BrightID use video-chat verification parties where participants verify each other's uniqueness.
- The security model shifts from a central authority to the collective honesty of the attested graph, assuming the majority of verifiers are honest.
Privacy & Anonymity Trade-offs
Strong Sybil resistance often conflicts with user privacy.
- Zero-Knowledge Proofs (ZKPs): Allow a user to prove they are a unique, verified human (or have certain graph attributes) without revealing their underlying identity or specific connections.
- Selective Disclosure: Protocols may allow users to reveal only the minimum attestation needed (e.g., "I am human" vs. "My social score is X").
- The fundamental tension lies between preventing fake accounts and preserving the right to pseudonymous participation.
Evolution: From Web2 to Web3
The transition from Web2 to Web3 fundamentally re-architects how social connections are represented, owned, and utilized, moving from centralized platforms to user-centric networks.
A follow graph is a directed graph data structure that maps the asymmetric relationship of "following" between entities, typically users, within a social network. In Web2, this graph is a proprietary asset owned and controlled by centralized platforms like X (formerly Twitter) or Instagram, which monetize user attention and connections through advertising. The platform's algorithms determine what content is surfaced, creating a walled garden where the social capital and network effects accrued by users are not portable or ownable by the users themselves.
The Web3 paradigm introduces the concept of a decentralized social graph, where follow and connection data is stored on a public blockchain or a decentralized protocol. This shift enables data portability and user sovereignty, allowing individuals to own their social identity and relationships. Protocols like Lens Protocol and Farcaster exemplify this by creating an open social layer where a user's profile, followers, and content are non-custodial assets represented as NFTs or stored in smart contracts, freeing them from platform lock-in.
This architectural change unlocks new models for social finance (SocialFi) and community governance. Developers can build interoperable applications on top of a shared social graph, where a user's reputation and connections persist across different dApps. Furthermore, it enables novel mechanisms like token-gated follows or community-curated feeds, transforming social capital into a verifiable, composable asset within a broader decentralized ecosystem, fundamentally redistributing power and economic value from corporations to users.
Frequently Asked Questions (FAQ)
Common questions about the decentralized social graph that underpins user identity and connections in Web3 applications.
A Follow Graph is a decentralized data structure that maps social relationships—such as follows, likes, and connections—between users on a blockchain network. It works by storing these relationship attestations as on-chain or cryptographically signed off-chain data, creating a portable social identity that is not owned by any single platform. Users control their graph, and applications can query it to bootstrap social features like feeds, recommendations, and reputation systems without vendor lock-in. Key protocols implementing follow graphs include Lens Protocol, Farcaster, and CyberConnect.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.