<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Weimo Liu on Medium]]></title>
        <description><![CDATA[Stories by Weimo Liu on Medium]]></description>
        <link>https://medium.com/@liuweimo215?source=rss-c54902e5a44b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RaHB4cLYwUaUxxtTt9y9ug.png</url>
            <title>Stories by Weimo Liu on Medium</title>
            <link>https://medium.com/@liuweimo215?source=rss-c54902e5a44b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:00:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@liuweimo215/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Distributed Graph Database: The Ultimate Guide]]></title>
            <link>https://medium.com/@liuweimo215/distributed-graph-database-the-ultimate-guide-27ac481c2044?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/27ac481c2044</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Tue, 02 Sep 2025 07:31:37 GMT</pubDate>
            <atom:updated>2025-09-02T07:31:37.726Z</atom:updated>
            <content:encoded><![CDATA[<p>Data doesn’t exist in isolation these days. Every piece of data relates to another through some context or form. And this connectivity powers the digital infrastructure our world stands upon, and by association, our day-to-day lives. Through the natural trait of data, these relationships have been nothing but growing in complexity, size, and scope.</p><p>We need something that can efficiently keep up with the growing interconnected data ecosystem. One that, by design, scales gracefully, allows for real-time operations, analytics, and can process heavy volumes of data with realistic expectations.</p><p>Distributed graph databases have emerged as a powerful solution that stands the demand of relationship-heavy data management. In this article, we’ll discuss how this technology works, its advantages, challenges, and some of the use cases it truly shines in unlike any other. At the end, we’ll explore the best distributed graph database tools to help you easily navigate the space if you’re on the lookout for a solution.</p><h3>What is a distributed graph database?</h3><p>A distributed graph database is a specialized database that stores data as vertices and edges, distributing this information across multiple machines. This architecture offers significant performance advantages over traditional, centralized databases, especially when handling large, interconnected datasets.</p><p>Instead of storing the entire dataset on a single server, a distributed graph database spreads it across numerous machines. This enables parallel processing, where multiple machines work concurrently on different parts of the data.</p><p>Think of a travel application mapping the global airline network. Each airport is a node, and each flight route is an edge. A distributed graph database would store this data across many servers. When a user searches for the shortest route between distant airports, the system can simultaneously query multiple machines holding different parts of the network. This parallel processing dramatically speeds up complex queries that would overwhelm a single, centralized server.</p><p>Furthermore, distributed architectures are inherently more scalable. As the dataset grows — say, by adding more airports and routes — the database can simply add more machines to the network. This allows the database to maintain high performance even with massive amounts of data, unlike traditional databases which struggle with complex queries as the dataset expands on a single machine. This scalability is crucial for applications requiring real-time responses on constantly evolving datasets, such as travel booking, social networks, and fraud detection systems.</p><p>Distribution also makes the system more fault tolerant. With sufficient replication, the database can continue functioning even if one machine fails, minimizing the risk of data loss. This resilience makes sure the database continues to operate smoothly, even under challenging conditions, without downtime or data inconsistency.</p><h3>How distributed graph databases work?</h3><p>Distributed graph databases use multiple techniques to efficiently store, query, and maintain consistency across large datasets. Let’s briefly discuss the key components graph databases employ to handle the complexity and scale of graph data distributed across several machines.</p><h3>Sharding</h3><p>Sharding breaks down a large graph into smaller, more manageable pieces. Each shard represents a subset of vertices and edges . These shards live across different machines in the cluster. This strategy allows the database to handle enormous datasets that a single server would otherwise fail to manage.</p><p>Sharding strategies vary depending on the graph structure and use case. Some systems partition based on vertex properties like geographic location or product type. Others divide by edge types or use algorithms that cluster related vertices into the same shard. For example, in a logistics network graph, each shard might represent a region, with warehouses and delivery routes as vertices and edges . This method ensures consistent efficiency for queries within a region, while cross-region queries involve multiple shards.</p><p>Sharding not only reduces the storage burden but also balances the load across the machines. Each machine in the cluster holds responsibility for a portion of the graph. As a result, you get better query performance and less bottlenecks during heavy workloads. However, if you don’t choose an effective sharding strategy, poor partitioning can lead to data imbalance, causing some machines to become overloaded while others remain underutilized.</p><h3>Distributed query processing</h3><p>To search a distributed graph, you need a way to find and combine data spread across different parts (shards) of the graph. When a user submits a query, the database must first identify which shards contain the relevant data. It then breaks the query into subqueries, each targeting a specific shard. Then the machines holding the shards process these subqueries in parallel.</p><p>For example, in a recommendation engine for an e-commerce platform, a query might search for customers who bought a particular item. If the data is partitioned by product categories, the system issues subqueries to the shards storing customers within those categories. Each shard processes its subquery independently. The database then combines the results to form a complete response to the original query. This distributed processing allows the database to handle large-scale traversals and graph algorithms, such as finding shortest paths or community detection, more quickly than a centralized system can.</p><p>Parallel processing also helps with queries that involve edges spread across different shards. A global supply chain network might span multiple regions, with vertices representing factories, warehouses, and transport hubs. A query to trace the path of goods across the network can involve multiple shards, but by processing these subqueries in parallel, the system can deliver the results faster.</p><h3>Distributed concurrency control</h3><p>Maintaining consistency in a distributed environment becomes a major challenge, especially when multiple users or applications access and update data simultaneously. Distributed graph databases use concurrency control mechanisms to prevent conflicts and make sure that the database remains consistent even during concurrent operations.</p><p>In optimistic concurrency control, a technique for managing data access, transactions proceed without preemptively locking data. Instead, each transaction completes its work and then checks to see if the data has changed since it was first accessed. If another transaction has modified the data in the meantime, the current transaction rolls back and retries. This approach minimizes contention, allowing for more concurrent operations while relying on validation to ensure data consistency. For example, in a financial graph tracking transactions between accounts, optimistic concurrency control ensures that updates to account balances don’t conflict with each other, even when multiple transactions occur simultaneously.</p><p>Many databases use distributed consensus algorithms like Paxos and Raft to maintain agreement across the machines on the order of operations. These algorithms make sure that all nodes in the cluster agree on changes to the data and therefore prevent inconsistencies. In a real-time communication network, for example, distributed consensus guarantees that messages sent between nodes remain consistent across the entire system, regardless of which machine processes them.</p><h3>Replication</h3><p>Replication guarantees the availability and fault tolerance of distributed graph databases. Each shard is replicated across several machines, meaning that if one machine fails, the system can continue to function by redirecting queries to another replica. This <em>redundancy</em> secures continuous availability and prevents data loss.</p><p>Replication also improves read performance. By creating multiple copies of the data, the system can distribute read queries across different replicas, reducing the load on any single machine. This becomes especially useful for applications that need to serve a large number of read-heavy queries, for example, a graph representing a large online knowledge base. With replicas distributed globally, users can access the nearest replica, which reduces latency and improves response times for geographically distributed users.</p><h3>Benefits of distributed graph databases</h3><p>Distributed graph databases offer significant advantages over traditional and single-instance graph databases, particularly when dealing with large datasets and complex relationships. In the preceding section, we’ve discussed some of the technical aspects about how distributed graph databases function. The singular benefits of them relate very much to these traits.</p><h3>Scalability</h3><p>Distributed graph databases scale horizontally by adding more machines to the cluster as data grows. Because of horizontal scaling, the database can handle increasing volumes of data without degrading performance. Unlike single-instance graph databases that can hit capacity limits, distributed systems distribute both data and workload across several nodes, significantly reducing the risk of central bottlenecks. While new bottlenecks can arise due to factors like network latency, data partitioning, and inter-node synchronization, these are typically smaller and more manageable than a central bottleneck, making distributed systems more resilient under heavy loads.</p><p>For example, a telecommunications company tracking millions of real-time device connections can scale the system by adding more machines, each responsible for a subset of the network. As a result, the database continues to process and store data efficiently as the number of devices and connections increases. The ability to add machines, also called “node elasticity”, allows organizations to grow their infrastructure in response to business needs, with minimal downtime or performance impact.</p><p>This scaling method also supports the <a href="https://docs.google.com/document/d/1KNWc7fSlJlznGJHkNBhUXVdyWQWQYVMLrJoRgcO8vOQ/edit?pli=1&amp;tab=t.0#heading=h.ws62j686yhg0">handling of queries</a> involving billions of vertices and edges . As new machines join the cluster, they contribute additional processing power and storage. With proper data partitioning and query optimization, distributed systems can maintain relatively consistent query performance as the dataset expands. For example, consider a large financial institution modeling customer transactions across different services. It can add more machines to efficiently handle the increasing transactional data while keeping the performance steady.</p><h3>High availability and fault tolerance</h3><p>As already mentioned, distributed graph databases ensure high availability by replicating data across multiple machines. Replication strategies involve storing copies of each shard (partition of the graph) on multiple nodes. If one node fails, another node with the replicated data can immediately take over, preventing any disruption to the service. This makes distributed graph databases highly fault-tolerant and resilient to hardware or network failures. Applications like e-commerce platforms or banking systems require continuous uptime. If a server failure occurs during peak hours, the database redirects queries to a replica, ensuring users experience no downtime. As you can imagine, failing to maintain robust fault tolerance in such use cases can bring serious consequences.</p><p>In more advanced distributed systems, databases employ techniques like <a href="https://en.wikipedia.org/wiki/Quorum_(distributed_computing)">quorum-based replication</a>, where read and write operations require acknowledgment from a majority of nodes to ensure consistency. A quorum-based strategy strikes a balance between performance and data consistency so that data remains available even during network partitions or machine failures. In distributed consensus protocols like Raft or Paxos, consensus on the state of the system is reached even if some nodes go offline, guaranteeing system-wide agreement on updates or changes to the database.</p><h3>Improved performance and fast complex queries</h3><p>Distributed graph databases optimize their performance by processing queries across multiple machines simultaneously. Thanks to <a href="https://docs.google.com/document/d/1KNWc7fSlJlznGJHkNBhUXVdyWQWQYVMLrJoRgcO8vOQ/edit?pli=1&amp;tab=t.0#heading=h.w0abiaisw5yg">distributed query processing</a>, distributed graph databases can reduce query execution time and maintain that at <a href="https://docs.google.com/document/d/1KNWc7fSlJlznGJHkNBhUXVdyWQWQYVMLrJoRgcO8vOQ/edit?pli=1&amp;tab=t.0#heading=h.oi6ua0hwvzep">scale</a>. Each machine processes its subquery independently, and the database aggregates the results into a unified response. For example, consider a large fraud detection system analyzing banking transactions. Through distributed processing, the system can detect fraudulent activities quickly by traversing the edges between accounts, merchants, and transaction histories across multiple shards. This results in fast incident response and stronger security.</p><p>The parallelism not only speeds up traversal but also improves graph algorithms. For example, algorithms like pathfinding or centrality calculations often require examining many vertices and edges at once. By distributing these operations across multiple machines, the system can handle real-time analytics for massive graphs.</p><p>Additionally, distributed caching mechanisms can further improve performance by storing frequently accessed data in memory across nodes. It reduces the need to read from disk repeatedly. Disk read operations are system calls and system calls are expensive. By avoiding them, you essentially save a significant amount of processing time.</p><h3>Reduced latency</h3><p>Distributed graph databases also reduce data access latency between database and application by distributing replicas geographically. By placing data closer to user locations, databases reduce the time it takes to retrieve information, significantly improving the user experience.</p><p>A social media platform using a distributed graph database can provide users with immediate recommendations or connections by storing user relationship data in geographically close data centers. When a user in Asia connects, the database can quickly serve relevant data from a nearby replica rather than one in North America, ensuring faster and smoother interactions. Every millisecond of delay can affect the user experience.</p><p>Then there exists techniques like dynamic replication, where frequently accessed data is replicated across more nodes closer to the regions generating the most traffic. This further reduces latency while balancing the system load. For read-heavy applications, this technique provides significant performance gains without overwhelming any single node in the cluster.</p><h3>Flexibility and agility for evolving data models</h3><p>Distributed graph databases possess great flexibility. They can easily adapt to changes in data models and relationships. This doesn’t come as a surprise due to the fundamental nature of graph databases being <em>schemaless</em>.</p><p>As new types of vertices or edges come in, the database can incorporate these changes without the need for a full schema overhaul. Dynamic applications like <a href="https://www.puppygraph.com/blog/knowledge-graph-in-machine-learning">knowledge graphs</a> continuously add new entities and relationships. In such use cases, this flexibility becomes a very critical component. For example, imagine an enterprise knowledge graph that tracks employees, projects, and skills. You can add new nodes representing emerging technologies or job roles without requiring significant restructuring of the existing graph.</p><p>You’ll also see this agility in querying capabilities. Distributed graph databases allow you to design flexible queries that can evolve as the data model changes. In a cybersecurity application tracking threats and attack vectors, the database may need to integrate new threat intelligence feeds as they become available. A distributed graph database can smoothly and continuously add new vertices and edges to the existing data model. As a result, security teams can analyze evolving threat patterns without interruptions or costly database migrations.</p><h3>Enhanced load balancing and system efficiency</h3><p>Distributed graph databases have been designed to distribute both storage and processing workloads efficiently across nodes in the cluster. It ensures that no single machine becomes a bottleneck. As the data grows or query traffic increases, distributed databases can automatically reassign workloads to underutilized nodes so the system stays efficient.</p><p>For example, a logistics company using a distributed graph database to model its supply chain may experience uneven traffic as certain regions see a surge in shipping activities. The database can dynamically balance the load by redistributing queries or data storage to nodes with lower activity, resulting in even performance across the entire system.</p><p>In addition to automatic load balancing, distributed graph databases often support dynamic sharding. The database can re-shard parts of the graph when certain shards become too large or too active. Dynamic sharding can help make sure efficient usage of system resources, prevent performance degradation, and optimize resource allocation.</p><h3>Challenges in managing distributed graph databases</h3><p>The numerous benefits distributed graph databases have to offer may convince you to switch to or choose them promptly. But let’s take a moment to consider the challenges that come with their adoption. These challenges arise from the inherent complexity of distributing data and processes across multiple machines.</p><h3>Data consistency: balancing accuracy with performance</h3><p>One of the biggest challenges lies in maintaining data consistency across a distributed system. Firstly, you must make sure that updates on one machine propagate quickly and correctly to all replicas. To achieve this, you have to implement robust concurrency control mechanisms. Distributed graph databases often face trade-offs between strong and eventual consistency. Strong consistency guarantees that all nodes reflect the same data instantly. However, it can slow down performance, especially under high write loads. Eventual consistency improves performance but may cause temporary inconsistencies. This can prove problematic for applications requiring real-time accuracy, such as financial services. Choosing the right consistency model depends on the application’s needs, balancing consistency, availability, and performance.</p><h3>Network communication: minimizing latency and bandwidth issues</h3><p>Distributed graph databases rely heavily on network communication between machines. Complex queries that traverse vertices across multiple shards often require data exchange between different machines, which introduces network latency. Additionally, bandwidth limitations can slow down the overall performance of the system. To minimize these issues, distributed systems must optimize network communication through routing algorithms that reduce unnecessary data transfers and maximize data locality. For example, placing frequently queried nodes on the same machine minimizes cross-shard communication and therefore reduces query times.</p><h3>Operational complexity: managing a distributed cluster</h3><p>Managing a distributed graph database introduces more operational complexity compared to a single-instance database. Cluster setup, monitoring, configuration, and maintenance require sophisticated tools and strategies. You must use automated tools and real-time monitoring systems to keep the cluster healthy and make sure that machines are balanced and working efficiently. Tools like Kubernetes and Prometheus have become very popular as they help simplify these tasks by automating deployment, scaling, and alerting.</p><p>Without automation, managing a cluster at scale involves substantial manual effort, making it more error-prone and difficult to maintain. By today’s standards, that becomes an impractical approach and in most cases not feasible.</p><h3>Data partitioning: finding the right sharding strategy</h3><p>We’ve already discussed graph partitioning. For distributed graph databases, efficient sharding is critical for performance and scalability. Poor sharding strategies can result in uneven data distribution, where some machines handle more data or queries than others, creating performance bottlenecks. Inappropriate partitioning also leads to excessive network communication between shards, as different machines can store the related data. Effective sharding requires understanding both the graph structure and typical query patterns.</p><p>For example, consider a social network, where some users have far more connections than others. Simply sharding by user ID here can lead to “hotspots” where certain machines handle much more data or traffic than others. Instead, sharding based on edge types or community detection algorithms can group highly connected nodes within the same shard-for example, users with many mutual connections. This reduces the need for cross-shard communication when queries traverse these edges.</p><p>To alleviate this issue and help optimize performance, advanced techniques like dynamic re-sharding allow the database to adjust partitioning over time as query patterns change. However, it can add additional complexity.</p><h3>Security: protecting data in a distributed environment</h3><p>Securing a distributed graph database involves more layers than securing a single-instance system. Remember that data is spread across multiple machines. So you’re dealing with a larger attack surface. It becomes harder to ensure end-to-end protection.</p><p>Security strategies must include strong authentication, role-based access control (RBAC), encryption of data in transit and at rest, and regular security audits. You must also secure network communication between nodes, as unencrypted traffic can expose sensitive data. Investment in tools like firewalls, virtual private networks (VPNs), and virtual private clouds (VPCs) becomes just as important. These tools allow administrators to control exposure to external threats as well as restrict network access to only authorized machines.</p><p>For highly sensitive applications like healthcare or government systems, encryption protocols like TLS and diligent access control policies can provide an extra layer of safety.</p><h3>Use cases of distributed graph databases</h3><p>Throughout our discussion so far, we’ve already touched on brief examples of use cases where distributed graph databases shine. To no one’s surprise, they have unmatched utility in use cases requiring the analysis of complex relationships within large datasets. Let’s explore more of the use cases.</p><h3>Social networks</h3><p>Social media platforms such as Facebook and Twitter rely heavily on distributed graph databases to manage the vast network of user interactions. These databases model friendships, follows, likes, and comments as vertices and edges in the graph level. It powers the ability of the platforms to analyze and suggest connections in real time. Without distributed graph databases, platforms like this wouldn’t possess the ability to handle millions of simultaneous interactions while maintaining low-latency performance. Distributed graph databases enable features like friend recommendations, targeted content delivery, and social graph analysis by quickly traversing the complex web of edges.</p><p>For example, if you use Facebook, you may have seen it recommend mutual friends. At the database level, this results from identifying second-degree connections between users. Same goes for content suggestions based on shared interests within a social circle.</p><h3>Recommendation engines</h3><p>E-commerce platforms like Amazon and streaming services such as Netflix have personalized recommendation sections. You may have noticed sections like “Frequently bought together” on Amazon or “Shows you might like” on Netflix. These recommendation engines leverage distributed graph databases behind the scenes. By analyzing relationships between users, products, and behaviors, they deliver personalized suggestions for each user.</p><p>For example, distributed graph databases allow platforms to model the connections between users’ browsing history, product purchases, and reviews, so that algorithms can suggest similar products. By processing this data in real time, the system improves user engagement and drives higher sales or watch times. Just like social networks, the ability to scale across millions of users and products, while maintaining fast response times, makes distributed graph databases ideal for tasks like these.</p><h3>Fraud detection</h3><p>Financial institutions and e-commerce platforms use distributed graph databases for real-time fraud detection. These systems analyze transaction data, user behavior, and relationships between accounts to detect anomalies indicative of fraudulent activities.</p><p>For example, a distributed graph database can quickly traverse the transaction network of a suspicious account, identifying unusual patterns such as rapid transfers between multiple accounts or connections to previously flagged entities. The system processes these queries across multiple nodes in parallel, reducing the time it takes to detect and block fraudulent activities. This speed and scalability give organizations fast response times and strong crisis management systems that prevent significant financial losses and protect users in real time.</p><h3>Knowledge graphs</h3><p>Knowledge graphs are an ideal use case for distributed graph databases due to the latter’s ability to model intricate relationships between entities. For example, a knowledge graph in the medical field might represent the relationships between diseases, symptoms, treatments, and medical literature. Distributed graph databases allow researchers or medical professionals to quickly query this data for knowledge discovery through semantic search. They can identify connections, such as the correlation between certain symptoms and diseases, or emerging treatments based on recent research.</p><p>Not just the medical field, distributed graph databases can power knowledge graphs for industries like healthcare, legal research, and scientific discovery. Handling large-scale data, updating information dynamically, and querying complex relationships make distributed graph databases a decisive technology for knowledge graphs.</p><h3>Network and IT management</h3><p>Telecommunications companies and IT departments rely on distributed graph databases to model and monitor their network infrastructures. It becomes possible to map out devices, connections, and data flows. Teams can then easily analyze network performance and detect issues like bottlenecks or security vulnerabilities. For example, consider a telecommunications company managing a global network of mobile towers and data centers. They can use a distributed graph database to model connections between infrastructure nodes. This allows engineers to optimize traffic routing, balance loads across the network, and detect points of failure in real time. By maintaining a dynamic, up-to-date view of the network, distributed graph databases can increase your operational efficiency and make sure your company delivers uninterrupted service.</p><h3>Supply chain management</h3><p>In supply chain management, distributed graph databases can track the movement of goods, monitor inventory levels, and optimize logistics. By mapping the relationships between suppliers, manufacturers, distributors, and customers, you get visibility into how products flow across the entire supply chain.</p><p>For example, a large retailer can use a distributed graph database to track shipments from various suppliers to distribution centers and stores. It can identify potential delays or disruptions in real time. The system analyzes these relationships and can suggest alternative routes, adjust inventory levels based on demand, and improve delivery times.</p><p>Supply chains inherently possess a highly-interconnected nature. And since distributed graph databases excel in managing these large-scale, interconnected systems, matching these two together makes supply chain operations more efficient and responsive.</p><h3>Cybersecurity</h3><p>Cybersecurity teams use distributed graph databases to analyze potential threats and vulnerabilities within their systems. The databases can map out relationships between users, devices, and access points. Organizations can quickly detect unusual activity or attack vectors within a very fast timeframe. For example, a distributed graph database can model connections between users’ login attempts, access permissions, and sensitive data locations. If a user exhibits unusual access patterns or connects to known malicious entities, the system can flag the behavior as a potential breach.</p><p>Distributed graph databases empower cybersecurity teams to perform deep, real-time analysis of their networks. They help reduce the response time to cyber threats and improve overall system security.</p><h3>Best Distributed Graph Databases Tools</h3><p>To choose the right distributed graph database tool, you have to carefully consider your specific needs and priorities. With the growing innovation in this space, several powerful tools exist that come with their unique strengths. Let’s look at some of the leading options.</p><h3>PuppyGraph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/0*lqlNKYrbMDb6RA6R.png" /></figure><p><a href="https://www.puppygraph.com/">PuppyGraph</a> stands out as a cutting-edge distributed graph solution designed for ease of use, scalability, and high performance. It is the first and only graph query engine in the market. Unlike other graph database solutions that require extracting, transforming, and loading (ETL) data from existing databases, PuppyGraph directly integrates with your existing relational data sources. You don’t have to maintain complex data pipelines and incur latency costs. These strengths make PuppyGraph ideal for fast-paced environments and real-time analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ox8OG57IRF7lCZfW.png" /></figure><p>Figure: Supported data sources by PuppyGraph</p><p>PuppyGraph <a href="https://docs.puppygraph.com/querying/querying-using-opencypher">supports both openCypher and Gremlin</a> as query languages. So you have the maximum flexibility to write your queries, no matter your background. Its distributed architecture ensures high availability and fault tolerance, making it suitable for demanding applications. With its focus on simplicity and performance, you can scale effortlessly without compromising performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dIXwjfM_s13tAT_q.png" /></figure><p>Figure: PuppyGraph architecture</p><h3>No ETL</h3><p>PuppyGraph enables you to query your SQL data as a graph by directly connecting to your data warehouses and lakes. This eliminates the need to build and maintain time-consuming ETL pipelines for a traditional graph database setup. You don’t have to wait for data or encounter ETL process failures anymore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fgmEv5daW9AEQ-7e.png" /></figure><p>Figure: Before vs. after PuppyGraph</p><h3>Petabyte-level scalability</h3><p>PuppyGraph eradicates graph scalability issues by separating computation and storage. Using min-max statistics and predicate pushdown, PuppyGraph significantly reduces the amount of data it scans.</p><p>PuppyGraph perfectly aligns with vectorized data processing. It contributes to PuppyGraph’s ability to scale effectively and ensure rapid responses to intricate queries. You get streamlined data analysis and overall improved query performance. PuppyGraph’s auto-sharded, distributed computation effortlessly manages vast datasets, ensuring robust scalability on both storage and computation.</p><h3>Complex queries in seconds</h3><p>PuppyGraph delivers lightning-fast results, handling complex multi-hop queries like 10-hop neighbors in seconds. Our patent-pending technology efficiently leverages all computing resources for exceptional performance. PuppyGraph’s distributed query engine design allows users to increase the performance by simply adding more machines.</p><h3>Deploy to query in 10 mins</h3><p>PuppyGraph’s revolutionary query engine eliminates onboarding hassles that comes with a graph database. You deploy and start querying within just 10 minutes.</p><p>Replacing an existing Neo4j database? Effortlessly drop in PuppyGraph as the replacement and seamlessly connect to third-party tools without any data or code migration.</p><h3>Neo4j AuraDB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/0*seQ686jRJ3bqtN0X.png" /></figure><p>Neo4j is a well-established graph database, known for its mature ecosystem and the Cypher query language. AuraDB, its cloud-based offering, brings fully-managed scalability to users to handle larger datasets compared to its on-premise version.</p><p>However, for very large-scale graphs or complex queries, Neo4j’s performance can sometimes fall short compared to more specialized distributed graph databases. It requires an ETL process to load data from other systems into its native graph format. This adds complexity and potential latency to data ingestion workflows.</p><h3>Amazon Neptune</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/0*vafXlYluXQ4CZ2w7.png" /></figure><p>Amazon Neptune is AWS’s fully managed graph database service designed for large-scale applications. It supports both property graphs, through Gremlin, and RDF graphs, through SPARQL. It also supports openCypher. So you get the versatility necessary for various use cases.</p><p>While Neptune benefits from AWS’s infrastructure, it relies on native graph storage. This means you must perform ETL to move data into the system. This additional data transformation step can introduce delays, especially when working with complex or large datasets. Neptune shines in its smooth integration with other AWS services, but users should think about the trade-offs of the ETL process.</p><h3>ArangoDB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*H0cL2c7cKzliQyW_.png" /></figure><p>ArangoDB is a multi-model database that supports graph, document, and key-value data models in one system. Its multi-model nature allows flexibility for applications that require different data models, but this versatility can sometimes limit its optimization for graph-specific workloads compared to dedicated graph databases.</p><p>ArangoDB also requires an ETL process to import data from other sources, which may add complexity to its deployment. While ArangoDB offers versatility, its graph capabilities may not match the specialization and performance of more <em>focused</em> graph databases.</p><h3>TigerGraph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/0*z9ExaI8rRNVf0T2e.png" /></figure><p>TigerGraph focuses on high performance and scalability, claiming to handle massive graphs with extremely fast query processing. TigerGraph uses its own query language GSQL, which is optimized for parallel query execution. However, the learning curve for GSQL can prove steeper compared to more widely used languages like Cypher or Gremlin. Like other native graph storage solutions, TigerGraph requires ETL for loading data, which can introduce additional steps and delays in data management.</p><h3>Conclusion</h3><p>Distributed graph databases make the power and value of graph databases more accessible and viable. New research, innovations, and tools have been constantly reinforcing the ecosystem around distributed graph computing, management, and analytics. <a href="https://www.puppygraph.com/">PuppyGraph</a> is one of those technologies, and truly one of its kind.</p><p>If you still aren’t convinced how PuppyGraph can help you get more value out of your data through the power of a distributed graph, download the forever free <a href="https://www.puppygraph.com/dev-download">PuppyGraph Developer Edition</a>. Or if you’re feeling more adventurous, start a <a href="https://www.puppygraph.com/start-trial">free 30-day trial of the Enterprise Edition</a>.</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/distributed-graph-database"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27ac481c2044" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SIEM Graph: Visualizing Security Data for Faster Threat Detection]]></title>
            <link>https://medium.com/@liuweimo215/siem-graph-visualizing-security-data-for-faster-threat-detection-31833345df8e?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/31833345df8e</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Tue, 02 Sep 2025 07:27:37 GMT</pubDate>
            <atom:updated>2025-09-02T07:27:37.443Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://securitybrief.co.nz/story/cybercrime-to-cost-12-trillion-by-2025-says-forrester">Forrester</a> expected global cybercrime costs to reach $10.5 trillion annually by 2025. When you ponder over the implications of such a staggering number, a couple of things come to mind. The most obvious and important ones consist of the evolving threats and the urgency of more advanced and capable security solutions to counter them.</p><p>Security Information and Event Management (SIEM) systems have long been a staple to help detect and respond to cyber threats. They help large corporations tackle threats and vulnerabilities before they can harm business operations. However, traditional SIEM systems often fall short in visualizing security data with its evolving complexity and diverse nature. Keeping in mind the cybercrime statistic, we must get past these limitations to strengthen our threat detection and incident response.</p><p>SIEM graphs have emerged as a promising technology that transforms how we leverage security data. It can consistently deliver faster threat detection and thus decisive incident responses. In this article, we dive into the core concepts, benefits, real-world applications, and challenges of SIEM graphs. We also double down on how PuppyGraph enhances <a href="https://www.puppygraph.com/cybersecurity">cybersecurity</a> with its cutting-edge graph technology that unifies security data from a broad spectrum of sources for powerful graph analytics.</p><h3>What is a SIEM Graph</h3><p>In a traditional SIEM setup, logs and alerts from various sources-firewalls, endpoints, servers, and applications-are collected and correlated using rules or patterns. While this approach centralizes security data, it often remains siloed in rigid structures. Analysts rely heavily on searching and filtering through massive volumes of logs, which can be time-consuming and make it difficult to see the bigger picture.</p><p>‍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1ajCQZneSWDSidze.png" /></figure><p><em>Figure: High-Level SIEM Data Flow</em></p><p>A SIEM graph, on the other hand, applies graph theory to represent this same data in a more intuitive, interconnected manner. Instead of simply seeing columns and rows of log entries, analysts view nodes (entities such as users, devices, or applications) and edges (the relationships or interactions among them). This network-like view makes it far easier to spot unusual behaviors and understand how individual events link together to form potential attack paths.</p><p>You can think of it like a social network-but instead of mapping friendships, you’re revealing hidden relationships among IP addresses, user accounts, files, and other security-relevant artifacts. Under the hood, graph databases excel at managing these complex relationships, allowing analysts to quickly traverse from one suspicious node to a connected event or device. For instance, the graph might highlight if a single compromised account is suddenly accessing an unusual set of resources or communicating with suspicious IP addresses, enabling swift detection and response.</p><p>By offering a holistic and visual perspective of security data, SIEM graphs help security teams cut through the noise, reduce false positives, and more effectively protect against threats-often catching malicious activity well before it becomes a critical incident.</p><h3>The Importance of Visualization in Cybersecurity</h3><p>With how increasingly complex the threat landscape has become, visualizing security data has become a crucial component in threats countermeasure systems. Traditional security tools often generate massive volumes of raw data. If analysts possess only this raw data, it becomes very difficult for them to identify critical events and patterns. Visualization tools transform this data into digestible formats and simplify them. As a result, you get faster and more effective threat detection.</p><p>Humans possess a remarkable ability to process visual information quickly. Our brains recognize patterns and anomalies more easily in visual representations. We can infer information better when we have the ability to explore how the different pieces of it relate to one another. SIEM graphs leverage an innate property that can bring about all these capabilities. It allows security analysts to grasp complex relationships and identify potential threats with greater speed and accuracy.</p><p>Imagine trying to investigate a network intrusion by sifting through thousands of log lines. This task becomes significantly easier when you can see a visual representation of the attack path, highlighting the compromised systems and the attacker’s actions.</p><p>Effective visualization tools also facilitate better collaboration among security teams. A clear visual representation of an attack can help different team members understand the situation quickly for faster and more coordinated incident response. You can minimize the impact of security breaches by fostering such shared understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xoUbuho8DjG0nLo5.png" /></figure><p>Figure: PuppyGraph SIEM Graph Demo Revealing Lateral Movement Risks on Custom-built UI</p><h3>Key Features and Benefits of SIEM Graphs</h3><p>Let’s discuss some of the key areas that make SIEM graphs compelling.</p><h3>Advanced Relationship Mapping</h3><p>SIEM graphs map relationships between different entities like users, devices, applications, and IP addresses. They represent these entities as nodes and how they relate to one another as edges. Through such interconnected structures, you can easily discover hidden links and dependencies that linear data formats often miss. Analysts can uncover relationships that indicate attack paths or compromised systems.</p><p>When you expand a SIEM graph across an entire enterprise, you get an all-inclusive and all-encompassing view into the enterprise’s security data. It becomes an incredibly powerful tool that lets you manage and monitor your company’s security data in real time. Team members gain the ability to comprehend the security details of the products they work on.</p><h3>Intuitive Visual Interface</h3><p>SIEM graph services often come with visual interfaces that can enhance complex data analysis and simplify a lot of the pain points associated with abstract data. For example, analysts can explore connections interactively in the UI, zooming in on specific nodes or edges to investigate further, and so on.</p><p>Such visualization capabilities can highlight critical attack paths such as the sequence of events in a multi-stage attack. These tools also reduce cognitive load, making it easier for teams to understand and act on security data. The enhanced clarity you get from visualization improves decision-making during high-pressure scenarios.</p><h3>Real-Time Threat Detection</h3><p>Graph-based systems can analyze security data streams in real time. By continuously updating nodes and edges, SIEM graphs reflect the latest changes in the environment. This capability helps identify anomalies as they occur, such as unusual network activity or lateral movement. Real-time detection allows security teams to act quickly, minimizing potential damage. The ability to visualize attack paths and identify affected systems reduces the time it takes to contain and remediate threats.</p><h3>Pattern and Anomaly Detection</h3><p>SIEM graphs enable deep pattern recognition and anomaly detection. Analysts can identify recurring attack patterns, such as command-and-control communications or privilege escalation chains. Graph algorithms, like clustering or community detection, can dig out unusual groupings of nodes and edges. These insights help predict and prevent future attacks. Detecting anomalies in this manner strengthens overall threat intelligence.</p><h3>Performance and Scalability</h3><p>SIEM graphs deliver the high performance needed for real-time security monitoring while scaling effectively with growing volumes of security data. Through optimized graph algorithms and distributed architectures, they can process millions of events and relationships without significant latency, enabling rapid threat detection across large enterprises. The ability to handle complex queries across vast datasets ensures security teams can conduct thorough investigations without performance degradation. Additionally, modern SIEM graph solutions adapt easily to changing data structures, supporting the integration of new data sources and evolving security requirements. This combination of performance and scalability ensures long-term viability in environments with increasing data demands.</p><h3>Enhanced Collaboration</h3><p>SIEM graphs foster superior collaboration among security teams by providing a shared visual language for complex security scenarios. Through their intuitive visualization of relationships between security events, assets, and threats, graphs enable team members with different technical backgrounds to quickly grasp the full context of security incidents. This common visual understanding accelerates decision-making during incident response and eliminates communication barriers that often arise when teams rely on raw logs or abstract data. Teams can also annotate graphs to document their investigation findings, creating a rich knowledge base that combines visual context with expert insights. This visual documentation becomes particularly valuable for training new team members and establishing consistent incident response procedures across the organization.</p><h3>Challenges in Making SIEM Graphs</h3><p>While SIEM graphs offer powerful capabilities for security analysis, organizations face several key challenges in implementing and maintaining them effectively. Here are the primary challenges.</p><h3>Data Integration and Quality</h3><p>The foundation of effective SIEM graphs lies in data quality and integration. Security teams must handle diverse data sources including logs, network traffic, and application telemetry — each with its own format and structure. The challenge intensifies when dealing with inconsistent or incomplete data that requires extensive preprocessing. Organizations must invest significant resources in data cleaning, normalization, and validation to ensure the graph accurately represents security relationships.</p><h3>Performance at Scale</h3><p>As security data volumes grow, maintaining graph performance becomes increasingly challenging. Modern enterprises generate billions of security events, translating into massive graphs with complex relationships. The system must efficiently manage queries across these large-scale structures while maintaining response times suitable for real-time threat detection. This requires sophisticated infrastructure and optimization strategies, particularly for features like real-time updates and complex pattern matching.</p><h3>Visualization and Usability</h3><p>While graphs excel at showing relationships, they can become overwhelming as they grow in size and complexity. Security analysts must be able to navigate and interpret the visualization without experiencing cognitive overload. The challenge lies in striking the right balance between showing detailed information and maintaining clarity. Teams need intelligent filtering, clustering, and focus+context techniques to make large-scale security graphs manageable and useful.</p><h3>Technical Expertise Gap</h3><p>Implementing and maintaining SIEM graphs requires a unique combination of skills spanning graph theory, database management, and security analytics. Many organizations struggle to find or develop talent with this specialized expertise. The learning curve for existing security teams can be steep, particularly when working with graph queries and complex analytical algorithms. This expertise gap can significantly impact the effectiveness of graph-based security solutions.</p><h3>Operational Integration</h3><p>Incorporating SIEM graphs into existing security workflows presents both technical and operational challenges. Organizations must ensure seamless integration with current security tools and processes while maintaining operational efficiency. This includes addressing compatibility issues with legacy systems, managing data flow between components, and adapting existing incident response procedures to leverage graph-based insights effectively.</p><h3>Real-world Applications of SIEM Graphs</h3><p>SIEM graphs have applications across various cybersecurity domains. Let’s look at some prominent real-world use cases.</p><h3>Threat Actor Detection and Analysis</h3><p>SIEM graphs excel at identifying both internal and external threats through behavioral analysis. For insider threats, graphs map relationships between users, accessed resources, and system activities, quickly flagging unusual patterns like mass data access or privilege escalation. In external threat detection, graphs visualize network connections and access patterns to reveal potentially compromised accounts. The ability to analyze temporal patterns helps distinguish between normal business operations and suspicious activities, enabling early intervention before significant damage occurs.</p><h3>Attack Chain Visualization</h3><p>SIEM graphs provide comprehensive visibility into attack progression and infrastructure. In malware investigations, graphs reveal infection paths by connecting initial entry points, compromised systems, and command-and-control communications. For phishing campaigns, graphs map relationships between malicious emails, affected users, and subsequent system interactions, helping security teams understand attack scope and impact. This end-to-end visualization allows analysts to quickly identify attack vectors and contain threats effectively.</p><h3>Advanced Persistent Threat (APT) Detection</h3><p>SIEM graphs are particularly powerful for uncovering APTs due to their ability to analyze long-term, subtle attack patterns. By aggregating and correlating data over extended periods, graphs can reveal the hallmark characteristics of APT campaigns — from initial compromise to persistent presence and data exfiltration. The temporal analysis capabilities of SIEM graphs help identify slow-moving threats that might otherwise go unnoticed, such as intermittent command-and-control communications or gradual privilege escalation. Graph algorithms can detect subtle indicators like unusual data access patterns or suspicious lateral movement between systems, even when these activities are spread across months. This long-term pattern recognition, combined with the ability to visualize complex attack chains, makes SIEM graphs invaluable for defending against sophisticated state-sponsored or targeted attacks.</p><h3>Network Security Monitoring</h3><p>By representing network topology and traffic patterns as interconnected nodes and edges, SIEM graphs enable sophisticated network security analysis. They help detect anomalous traffic patterns, unauthorized access attempts, and potential data exfiltration activities. Graphs can reveal hidden connections between seemingly unrelated network events, making it easier to identify coordinated attacks or lateral movement within the network. This capability is particularly valuable in large-scale networks where traditional monitoring tools might miss subtle attack indicators.</p><h3>Vulnerability Management</h3><p>SIEM graphs transform vulnerability management by contextualizing security exposures within the broader infrastructure. They correlate vulnerability data with asset relationships, access patterns, and threat intelligence to prioritize risks effectively. By visualizing how vulnerabilities could be exploited across connected systems, graphs help security teams focus remediation efforts on the most critical issues. This contextual understanding ensures more efficient resource allocation and better risk management decisions.</p><h3>Incident Investigation and Response</h3><p>When security incidents occur, SIEM graphs accelerate investigation and response processes by providing clear attack timelines and impact assessment. They help analysts quickly identify affected systems, compromised accounts, and potential data breaches by visualizing the relationships between security events, system activities, and user actions. This comprehensive view enables faster incident containment and more effective recovery strategies, reducing overall incident impact and resolution time.</p><h3>How Puppygraph can help you with SIEM graphs</h3><p><a href="https://www.puppygraph.com/">PuppyGraph</a> provides a powerful and efficient platform for building and deploying SIEM graphs, empowering your security team to stay ahead of evolving cyber threats. Its unique features and capabilities address the challenges of managing complex security data and enable rapid threat detection and response. Let’s see how!</p><h3>Real-time, Zero-ETL Graph Analytics — No Graph Database Required</h3><p>PuppyGraph eliminates the need for Extract, Transform, Load (ETL) processes through its direct-connect architecture, enabling deployment and querying within 10 minutes of installation. While traditional graph solutions require complex ETL pipelines that create static, potentially outdated data snapshots, PuppyGraph takes a different approach.</p><p>By establishing direct connections to your existing relational databases, data warehouses, and data lakes, PuppyGraph provides real-time graph analytics on your live security data. This direct connection ensures your security analysis always reflects the current state of your systems, while dramatically reducing deployment time and maintenance overhead. The elimination of ETL processes not only accelerates implementation but also ensures the accuracy and timeliness of your security monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7zudQgkulKSn9xOB.png" /></figure><p><em>Figure: PuppyGraph Architecture</em></p><h3>Data Control and Management</h3><p>PuppyGraph simplifies security data management while ensuring maximum control over sensitive information. By reusing your existing data store permissions and security infrastructure, PuppyGraph eliminates the complexities typically associated with graph database setup and access control. This approach saves valuable engineering resources while maintaining consistent security policies across your environment.</p><p>Your security data remains exclusively within your controlled environment at all times. Unlike traditional graph solutions that require data duplication, PuppyGraph’s architecture ensures your sensitive security data never leaves your secure infrastructure. This approach not only strengthens data governance but also simplifies compliance with security regulations and internal policies. With PuppyGraph, you maintain complete control over your security data while benefiting from advanced graph analytics capabilities.</p><h3>Iterative and Flexible Graph Modeling</h3><p>PuppyGraph’s design supports iterative and exploratory graph modeling, meaning you can refine models without rebuilding data pipelines. You can create multiple graph model versions for different use cases without rewriting transformations or reloading data. Changes take effect in minutes, enabling rapid experimentation and adaptation. Traditional graph databases can’t match this flexibility, where every model adjustment demands significant engineering effort. PuppyGraph gives you agility and freedom in creating and managing graph models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aaLzTQdimDjO6P0r.png" /></figure><p><em>Figure: Example of graph schema</em></p><h3>Performance and Scalability</h3><p>PuppyGraph delivers exceptional performance for complex graph queries. Its distributed architecture and optimized query engine enable rapid traversal and analysis of large-scale SIEM graphs. Designed to handle enterprise-scale deployments, PuppyGraph efficiently processes complex multi-hop queries across massive datasets while maintaining consistently fast response times.</p><p>The system scales seamlessly to accommodate growing data volumes and evolving security needs. Whether dealing with petabytes of security data, PuppyGraph’s auto-sharded, distributed computation ensures consistent performance. This scalability future-proofs your security operations against expanding threats and data growth. Security teams can conduct thorough investigations and threat hunting with speed and efficiency, performing deep, multi-level relationship analysis without worrying about performance degradation.</p><h3>User-friendly Interface and Visualization</h3><p>PuppyGraph provides an intuitive interface for building, querying, and visualizing SIEM graphs. The Graph Explorer allows you to explore large graphs straight in your browser, even if the graph contains millions of nodes and edges. It dynamically loads more data as you explore through the interface. Additionally, PuppyGraph has a visual query builder that simplifies complex traversals by allowing you to build queries interactively. You can customize the query builder’s UI and how it illustrates different data, resulting in intuitive, meaningful, and compelling graph visualizations that can effectively communicate information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ceYJEXOUUEZ1lpMt.png" /></figure><p>Figure: <em>Example</em> Query with query results and visualization.</p><p>SIEM graphs are crucial for detecting security threats by visualizing complex relationships and anomalies across systems. Below are three demo videos showcase how PuppyGraph can help cybersecurity companies easily create graph-based approaches that enhance threat detection:</p><h3>Conclusion</h3><p>SIEM graphs represent a crucial advancement in cybersecurity, offering powerful capabilities for threat detection and response through their ability to visualize and analyze complex security relationships. While traditionally implementing such systems posed significant challenges, modern approaches have made this technology more accessible and practical. Through its innovative architecture and focus on simplifying graph adoption, PuppyGraph helps organizations harness the full potential of SIEM graphs, providing them with a powerful tool in the ongoing fight against evolving security threats and helping safeguard their valuable assets.</p><p>To try PuppyGraph out and see what it can do for you, download the forever free <a href="https://www.puppygraph.com/dev-download">PuppyGraph Developer Edition</a>, or <a href="https://www.puppygraph.com/book-demo">book a free demo</a> today with our graph expert team.</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/siem-graph"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31833345df8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is an Enterprise Knowledge Graph? Benefits, Use Cases]]></title>
            <link>https://medium.com/@liuweimo215/what-is-an-enterprise-knowledge-graph-benefits-use-cases-9fc8ec9114af?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fc8ec9114af</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 07:41:01 GMT</pubDate>
            <atom:updated>2025-08-26T07:41:01.215Z</atom:updated>
            <content:encoded><![CDATA[<p>Organizations gather data from various sources, but combining that information can be complicated. An enterprise knowledge graph arranges data as interconnected entities to reduce fragmentation, highlight relationships, and promote clearer insights. This post explains what an enterprise knowledge graph is, how it differs from a standard knowledge graph, its essential components, and the steps to build one. It also examines benefits, practical use cases, and common hurdles, offering a clear picture of how this approach can support strategic objectives across an organization. It concludes with guidance on determining its suitability for different business environments.</p><h3>What is an Enterprise Knowledge Graph?</h3><p>An Enterprise Knowledge Graph arranges a company’s data as a network of connected entities, such as products, customers, suppliers, or services. Each entity carries details, and relationships describe how these entities link to one another. By placing information in this structure, organizations can move beyond fragmented tables or departmental databases, reducing the effort involved in searching for related facts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zQ4JXdIDkNnJacgL.png" /></figure><p>Figure: an example of enterprise knowledge graph (<a href="https://enterprise-knowledge.com/best-practices-for-enterprise-knowledge-graph-design/">source</a>)</p><p>Building this type of graph typically starts with identifying the central entities that matter-such as orders, projects, or user profiles-then mapping data from various sources into a shared format. Because the graph emphasizes relationships, it can highlight connections that might remain hidden in a spreadsheet or traditional database. For instance, a query on a given product can reveal its supplier, relevant support tickets, and related inventory records.</p><p>Most Enterprise Knowledge Graphs focus on data within a single organization. However, there are cases where a knowledge graph may connect information from multiple companies under agreed-upon security and governance rules. These multi-enterprise graphs help stakeholders collaborate on areas such as supply chain management or industry-wide research.</p><p>Security and data governance play a significant role in any Enterprise Knowledge Graph. The system may house sensitive information, so it usually includes role-based access controls, data validation rules, and audit trails. These measures help ensure that each department or user only sees what they are allowed to see.</p><p>Another advantage lies in how Enterprise Knowledge Graphs scale. As new data sources emerge, the graph can adjust to accommodate additional entities and relationships without extensive rework. This adaptability suits environments that accumulate large volumes of data-such as financial services, healthcare, or e-commerce. Over time, the graph becomes a reference point that supports tasks like analytics, reporting, and strategic planning.</p><p>By capturing how internal information links together, an Enterprise Knowledge Graph provides a clear view of operations. It reveals patterns, reduces time spent on manual data gathering, and offers a single framework where teams can share a consistent understanding of the data that drives daily decisions.</p><h3>Enterprise Knowledge Graph vs. Knowledge Graph</h3><p>A knowledge graph is a model of information that links entities-such as people, places, or concepts-to show how they connect. Public knowledge graphs often aim for broad coverage, spanning diverse topics. For example, a graph about world history might capture events, dates, and significant figures, linking them in a way that answers wide-ranging questions.</p><p>An Enterprise Knowledge Graph, however, usually focuses on a specific organization’s data, reflecting real-world relationships in areas like finance, supply chains, or customer support. Instead of capturing general facts about famous buildings or historical events, it holds detailed records of business transactions, project milestones, and operational processes. These details help employees quickly trace the chain of events behind a sales order, locate relevant documents, or identify which teams need to address a service issue.</p><p>Another key difference lies in governance and security. While public knowledge graphs might allow contributions from many sources, an Enterprise Knowledge Graph often restricts data input and updates to authorized individuals or systems. Role-based permissions determine which parts of the graph each user can view, and compliance rules shape how data is stored and shared. This level of control is necessary because enterprise data often includes sensitive or confidential information.</p><p>In terms of use cases, a general knowledge graph could power applications like a question-answering chatbot about historical facts. An Enterprise Knowledge Graph, on the other hand, might drive internal analytics or reporting tools that reveal sales trends, pinpoint supply chain bottlenecks, or integrate disparate datasets from various departments.</p><p>In summary, both forms of knowledge graphs rely on the idea of representing entities and their links. Yet the Enterprise Knowledge Graph is tailored to the needs of an organization, offering a secure, detailed, and structured view of its operations.</p><h3>Enterprise Knowledge Graph Use Cases</h3><p>Enterprise Knowledge Graphs connect related data, making it easier to see patterns and uncover insights. Here are a few examples of how organizations apply this approach to address real-world challenges.</p><h3>Customer 360 and Personalized Experiences</h3><p>Many companies struggle to unify customer data spread across support tickets, marketing tools, and e-commerce platforms. An Enterprise Knowledge Graph links these records under one structure, enabling a comprehensive view of each customer. Teams can trace a client’s history, preferences, and interactions at various touchpoints. This helps personalize product recommendations, marketing campaigns, or support responses.</p><h3>Supply Chain and Inventory Management</h3><p>Complex supply networks often involve multiple suppliers, distributors, and logistics partners. By integrating data about orders, shipments, and inventory, an Enterprise Knowledge Graph makes it easier to pinpoint bottlenecks or anticipate disruptions. A simple query might reveal exactly which products are affected by a certain raw material shortage. This level of transparency supports faster decisions on rerouting supplies or adjusting production schedules.</p><p>See an example of how PuppyGraph helps create an <a href="https://www.puppygraph.com/demo-videos/e-commerce-order-exploration-analysis">e-Commerce order exploration &amp; analysis graph</a>.</p><h3>Fraud Detection and Compliance</h3><p>In banking and insurance, companies face large volumes of transactions and strict regulations. A knowledge graph can connect account holders, transactions, and relevant regulations to detect unusual patterns. For example, relationships between multiple accounts or entities can highlight suspicious activity that might not stand out in isolated tables. Compliance teams can also track which regulations apply to specific data, reducing the risk of violations.</p><p>See an example of how PuppyGraph helps create a <a href="https://www.puppygraph.com/demo-videos/fraud-detection">P2P payment platform fraud detection graph</a>.</p><h3>Knowledge Management and Collaboration</h3><p>Organizations generate valuable content-reports, presentations, and technical documents-but employees often have trouble finding the right resources. An Enterprise Knowledge Graph can link documents to departments, authors, or projects, providing a navigable structure that quickly guides users to the material they need. This approach also reveals expertise relationships, so teams can identify who has relevant insights or past experience.</p><h3>Healthcare and Research</h3><p>Medical institutions handle patient records, clinical trial results, and research data. A knowledge graph can link patients to diagnoses, treatments, and outcomes, helping clinicians uncover potential correlations or risk factors. In research collaborations, shared knowledge graphs can highlight common findings, reduce duplication, and foster more effective partnerships.</p><p>See an example of how PuppyGraph helps create a <a href="https://www.puppygraph.com/demo-videos/patient-journey-graph">patient journey graph</a>.</p><h3>Product Lifecycle Management</h3><p>From design concepts to sales and support, products go through multiple stages, with different teams and tools involved. An Enterprise Knowledge Graph links engineering specifications to manufacturing steps, QA results, and customer feedback. This unified view streamlines processes, allowing stakeholders to spot design flaws early or prioritize features based on real user data.</p><p>Through these use cases, it’s clear that Enterprise Knowledge Graphs solve a common challenge: connecting scattered information to reveal meaningful relationships. They can enhance day-to-day operations, improve risk management, and open the door to new insights that keep organizations competitive in an ever-changing market.</p><h3>Components of an Enterprise Knowledge Graph</h3><p>An Enterprise Knowledge Graph brings together various data sources under a unified structure. It typically includes several core components that ensure reliable ingestion, meaningful organization, and secure access to the information.</p><p><strong>1. Data Ingestion and Integration<br></strong> Different departments often store data in spreadsheets, databases, and external services. An Enterprise Knowledge Graph must collect this data and convert it into a consistent format. This process involves data mapping, cleaning, and enrichment so that each data element can be represented as an entity or a relationship. Tools or pipelines may validate incoming records and handle errors to maintain accuracy.</p><p><strong>2. Semantic Model (Ontology or Schema)<br></strong> A semantic model defines the types of entities (e.g., “Customer,” “Product,” “Project”), the properties they carry (e.g., “Name,” “Status,” “Location”), and how they relate to each other. In many cases, standard vocabularies or industry-specific ontologies guide this process. A well-designed model captures the essential business logic, ensuring that each data point in the graph has a clear purpose and place.</p><p><strong>3. Graph Data Store<br></strong> Behind the scenes, a graph database (or a compatible data store) holds nodes (entities) and edges (relationships). The storage system should handle queries efficiently, even at scale. Whether deployed on-premises or in the cloud, the graph data store needs to manage large volumes of data while maintaining performance.</p><p><strong>4. Security and Governance<br></strong> Enterprise data can include confidential records. Role-based permissions determine who can view or edit certain parts of the graph. Governance policies establish processes for adding, updating, and deleting data. Logging and auditing tools track changes, while compliance requirements (like GDPR) may influence how personal or sensitive data is treated.</p><p><strong>5. Query and Analytics Layer<br></strong> Users explore the Enterprise Knowledge Graph by running queries that traverse relationships, returning insights like “all orders linked to a specific supplier” or “every project involving a certain employee.” Advanced graph analytics can uncover patterns, detect anomalies, or measure centrality in a network. These capabilities support decision-making across departments.</p><p><strong>6. Visualization and User Interface<br></strong> Finally, many organizations build dashboards or visual interfaces to help non-technical users understand and navigate the graph. Graph visualizations display entities and their links, allowing stakeholders to click on a node and reveal relevant details. This layer often boosts adoption by making the data accessible to a wider audience.</p><p>Together, these components form the backbone of an Enterprise Knowledge Graph, creating a structured environment that captures how data points connect and supports a range of business objectives.</p><h3>Challenges in Building Enterprise Knowledge Graphs</h3><p>Building an enterprise knowledge graph presents several technical hurdles, particularly for data engineers. Some of the key challenges include:</p><ul><li><strong>Error-prone ETL Process</strong>: Extracting, transforming, and loading data from multiple sources into the knowledge graph can introduce inconsistencies, errors, or missing data. Ensuring data is properly cleaned and aligned requires significant validation and testing to avoid propagating mistakes through the graph.</li><li><strong>Need for a Specialized Graph Database</strong>: Traditional relational databases aren’t suited to handle the complex relationships in a knowledge graph. Graph databases are essential for performance and flexibility, but they require specialized knowledge to set up and maintain, as well as ongoing resources to scale efficiently as data grows.</li><li><strong>Performance and Scalability</strong>: As the volume of data increases, maintaining high performance becomes critical. Optimizing graph traversal, indexing, and partitioning strategies are necessary to ensure the graph can handle large datasets while delivering fast queries.</li><li><strong>Complexity of Data Modeling</strong>: Designing a schema that effectively represents entities and relationships is challenging. Poorly structured graphs can result in inefficient queries and maintenance difficulties, making it essential to carefully plan the schema upfront and adapt it as the business needs evolve.</li><li><strong>Schema Changes and Impact on ETL</strong>: Schema changes are inevitable as business requirements shift. Modifying the graph schema requires significant updates to the ETL process, which can be both time-consuming and resource-intensive.</li><li><strong>Maintaining Data Quality</strong>: Data inconsistencies or outdated information can undermine the value of the knowledge graph. Ensuring high data quality through continuous validation and monitoring is essential to maintaining the graph’s reliability and usefulness.</li><li><strong>Integration with Existing Systems</strong>: Integrating a knowledge graph with existing software systems, databases, and APIs requires careful planning and often custom development. This integration can be complex and resource-heavy, especially in large, dynamic organizations.</li></ul><h3>Steps To Build An Enterprise Knowledge Graph</h3><p>We’ve explored how enterprise knowledge graphs provide powerful capabilities for integrating and analyzing business data. While traditional approaches require complex ETL processes and dedicated graph databases, you can build similar capabilities directly on your existing relational data using <a href="https://www.puppygraph.com/">PuppyGraph</a>.</p><p>PuppyGraph is the first and only graph query engine that operates directly on your relational data, eliminating the need for data migration or a separate graph database, while offering massive scalability and sub-second query performance.</p><p>For this demonstration, we’ll build an e-commerce knowledge graph using the <a href="https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce">Brazilian E-Commerce Public Dataset</a> from Olist, one of Brazil’s largest department stores. This dataset captures the real-world complexity of e-commerce operations, containing over 100,000 orders made at multiple marketplaces from 2016 to 2018. It includes customer information, order details, product data, seller records, and customer reviews-providing rich material for demonstrating how enterprise knowledge graphs can uncover valuable business insights.</p><h3>Prerequisites and Environment Setup</h3><p>Before we begin building our knowledge graph, ensure you have the following prerequisites installed:</p><ul><li>Docker and Docker Compose</li><li>Python 3</li><li>curl (for downloading the dataset)</li></ul><p>The demo materials are available in our <a href="https://github.com/puppygraph/puppygraph-getting-started/tree/main/use-case-demos/e-commerce-order-exploration-analysis-demo">GitHub repository</a>. You can also find a demo video on our <a href="https://www.puppygraph.com/demo-videos/e-commerce-order-exploration-analysis">use case website</a>.</p><h3>Step 1: Data Preparation</h3><p>First, let’s obtain and prepare the Brazilian E-Commerce dataset:</p><pre># Download the dataset curl -L -o archive.zip https: //www.kaggle.com/api/v1/datasets/download/olistbr/brazilian-ecommerce # Unzip the downloaded file unzip archive.zip -d ./csv_data/ # Convert CSV files to Parquet format python3 CsvToParquet.py ./csv_data ./parquet_data</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VmyTbN9nrzrB2EEv.png" /></figure><p>Figure: Data Schema of Brazilian E-Commerce Public Dataset (<a href="https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce">source</a>)</p><h3>Step 2: Environment Setup and Deployment</h3><p>PuppyGraph can be deployed quickly using Docker Compose. Our configuration includes all necessary services for a production-ready environment:</p><p>The Docker Compose file docker-compose.yaml sets up a multi-service environment for working with Apache Iceberg, MinIO, and PuppyGraph:</p><ul><li><strong>spark-iceberg</strong>: a Spark instance configured to work with Apache Iceberg.</li><li><strong>rest</strong>: an Iceberg REST server, which provides a RESTful API for managing Iceberg tables.</li><li><strong>minio</strong>: a Minio server, which is an S3-compatible object storage server.</li><li><strong>mc</strong>: a MinIO client that sets up storage buckets and policies for Iceberg.</li><li><strong>puppygraph</strong>: a PuppyGraph instance, which is a graph analytics engine to provide graph database service directly on relational data.</li></ul><h3>Step 3: Data Import</h3><p>Now we’ll import our data into Apache Iceberg tables. Connect to the Spark-SQL shell:</p><pre>docker exec -it spark-iceberg spark-sql</pre><p>Execute the provided SQL commands to create and populate the tables. The commands handle:</p><ul><li>Creating appropriate table schemas</li><li>Importing data from Parquet files</li><li>Handling data type conversions</li><li>Establishing proper relationships between entities</li></ul><h3>Step 4: Modeling the Graph</h3><p>Access the PuppyGraph Web UI at<a href="http://localhost:8081/"> http://localhost:8081</a> using the default credentials:</p><ul><li>Username: puppygraph</li><li>Password: puppygraph123</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xbJ9hPjmjUJTc2k1.png" /></figure><p>Figure: PuppyGraph browser UI schema creation step</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pW0bIEWU1FfldvJ-.png" /></figure><p>Figure: PuppyGraph browser UI view schema</p><p>Upload the schema using the provided schema.json file, which defines the schema of the knowledge graph. This schema extracts vertices and edges from the relational tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nJ62V6HOoWehhxkG.png" /></figure><p>Figure: PuppyGraph browser UI dashboard feature</p><p>Feel free to check out the graph data in the <a href="https://docs.puppygraph.com/graph-visualization/dashboard/?h=dash">dashboard</a>.</p><h3>Step 5: Querying the Knowledge Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MCTEb5PV9aTdbTWW.png" /></figure><p>Figure: The result of the query of city-wise sales analysis</p><p>Navigate to the Query panel on the left side. The Gremlin Query tab offers an interactive environment for querying the graph using Gremlin. Let’s explore some practical queries that demonstrate the power of our enterprise knowledge graph.</p><h3>Step 6: Cleanup</h3><p>When finished, stop and remove the services:</p><pre>sudo docker compose down --volumes --remove-orphans</pre><h3>Conclusion</h3><p>Enterprise knowledge graphs demonstrate the power of graph-based analysis in data integration and insights, offering organizations a comprehensive view of their business relationships and operations. While traditional approaches require complex ETL processes and dedicated graph databases, organizations can now build similar capabilities using PuppyGraph without the complexity of traditional implementations.</p><p>Interested in trying PuppyGraph? Download the forever free <a href="https://www.puppygraph.com/dev-download">PuppyGraph Developer Edition</a>, or <a href="https://www.puppygraph.com/book-demo">book a free demo</a> today with our graph expert team.</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/enterprise-knowledge-graph"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fc8ec9114af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Best Graph Analytics Tools of 2025]]></title>
            <link>https://medium.com/@liuweimo215/7-best-graph-analytics-tools-of-2025-12c7c8d0123a?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/12c7c8d0123a</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 07:31:33 GMT</pubDate>
            <atom:updated>2025-08-26T07:31:33.991Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Graph analytics tools have begun to command a significant place in today’s data-driven world. They offer a powerful tool that allows us to identify patterns in social networks, detect money laundering schemes, and much more. By providing the necessary firepower to handle complex relationships within interconnected data, graph analytics tools are becoming increasingly indispensable to many organizations.</p><p>In this blog post, we will explore the world of graph analytics platforms, exploring their importance, how they work, and the various types available. We will then move on to discuss some key factors to consider when choosing a graph analytics tool to help you make an informed decision that best suits your needs as you explore your options.</p><p>As we move further into 2025, a number of graph analytics tools based on cutting-edge technology have risen to prominence in the field. With this in mind, we will take a closer look at the top 7 graph analytics tools of 2025, examining their strengths, features, and what sets them apart from the rest. These include PuppyGraph, AWS Neptune, Cambridge Semantics, DataStax, Neo4j, OrientDB, and MarkLogic.</p><p>Whether you are a data scientist, a data engineer, or someone with a keen interest in the field, this blog post aims to provide you with a comprehensive understanding of graph analytics and the tools you’ll need to make use of this tech. So, get ready to dive deep into the fast-paced world of graph analytics and explore their potential.</p><h3>What is graph analytics?</h3><p>Graph analytics and the platforms that support it are powerful tools used to analyze complex relationships between connected data in a network. Graph analytics rely on a graph, a mathematical structure of nodes and edges where nodes represent entities and edges depict their relationships. This graph analysis focuses on pairwise data relationships and the structural characteristics of the graph as a whole.</p><p>Graph analytics, a branch of data science, stands out from traditional analytics. Traditional analytics focuses only on numerical data, whereas graph analytics focuses on unstructured, dynamic, and fluctuating datasets. This type of analytics provides an intuitive data model that can accommodate new entities and relationships as they arise, including weighted graph representations. With the help of a graph analytics platform, this approach offers a powerful way to analyze complex data.</p><p>One of the main benefits of graph analytics is the visual representation they provide. The ability to visualize data is an integral part of graph analytics, providing an easy way to understand and navigate through graph data. This effective communication of data facilitates faster pattern detection and understanding of the information within the graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DwOdJHkst0IIlkmo.jpeg" /></figure><p>Example: Visualize complex airport and flight data using PuppyGraph</p><h3>How do graph analytics work?</h3><p>Graph analytics uses graph-specific algorithms to assess the relationships between entities across different applications. The result is an array of insightful predictions and analyses. The use of these specific graph technology and algorithms is what sets graph analytics apart from other forms of data analysis.</p><p>Cluster, partition, PageRank, and shortest path are popular examples of graph algorithms. These algorithms are essential for comprehending the relationships and network structures among entities within a graph. Utilizing these algorithms, graph analytics can proficiently analyze and forecast patterns in data and analyze relationships, offering a potent instrument for data scientists and analysts.</p><h3>What are the types of graph analytics?</h3><p>Graph analytics, being an umbrella term, encompasses several distinct types. Each type has its own specialized focus and application. That being said, a company’s use case may lead them to leverage one or many types of graph analysis. Let’s take a look at a few particulars.</p><h3>Path analysis</h3><p>Path analysis is one of these types, pinpointing the shortest or most efficient routes between two nodes, in a graph. This type of analysis is commonly used in social network analysis and other applications.</p><h3>Community analysis</h3><p>Community analysis is another type, which aims to identify groups or clusters of nodes that share common features or have more dense connections to each other than to nodes outside their group. This method is typically achieved using algorithms such as the <a href="https://en.wikipedia.org/wiki/Louvain_method">Louvain algorithm</a>, <a href="https://en.wikipedia.org/wiki/Label_propagation_algorithm#:~:text=Label%20propagation%20is%20a%20semi,have%20labels%20(or%20classifications).">Label Propagation</a>, and <a href="https://www.geeksforgeeks.org/find-weakly-connected-components-in-a-directed-graph/">Weakly Connected Components</a>.</p><h3>Link prediction</h3><p>Link prediction and link analysis, another subset of graph analytics, deals with analyzing and predicting potential future links between nodes in a graph. This method helps understand the relationships between various data points in the graph.</p><h3>Node embeddings</h3><p>Finally, node embeddings convert nodes into vector representations that succinctly capture the structural essence of the nodes and their relationships within the graph. These embeddings are especially beneficial for inputting graph-based data into machine learning algorithms.</p><h3>Key factors to consider for graph analytics tools</h3><p>Choosing the appropriate graph analytics tool is a significant decision that can greatly influence the success of your data analysis. Making sure you select the right tool for your specific use case means you must understand what type of analysis you plan to perform using graph, and if the platform supports it. Once you’ve established this, several key factors must be considered when assessing different tools.</p><h3>Deployment &amp; maintenance</h3><p>One vital factor to consider is how easy a tool is to deploy and maintain over time. A tool that can be seamlessly integrated into existing systems (e.g., existing databases, data warehouses or data lakes) without extensive setup time or specialized knowledge not only accelerates the adoption process but also reduces the total cost of ownership (TCO). Look for solutions that offer straightforward installation processes, clear documentation, and active community or professional support. This ensures that your team can focus on deriving insights from data, rather than getting bogged down by complex deployment hurdles and ongoing maintenance challenges.</p><h3>Scalability</h3><p>Scalability is an important factor, allowing a graph analytics tool to handle large datasets efficiently, maintain high read and write loads, and adapt to increasing data sizes.</p><h3>Performance</h3><p>Performance is another key factor, with superior performance leading to quicker and more precise analysis, improving decision-making, and enhancing scalability to manage larger and more complex graphs.</p><h3>Supported integrations</h3><p>When looking at the available tools, you’ll also want to consider your current data stack. You’ll want to ensure that the analytics platform supports your data sources so that the data you are generating can easily be pulled into the platform.</p><h3>Other considerations</h3><p>Finally, when choosing a tool for software engineering, consider the following:</p><ul><li>The variety of tools provided</li><li>The tool’s capacity to support the complete software engineering lifecycle</li><li>Ensuring it meets the needs of a wide user base, including those primarily engaged in data analysis.</li></ul><h3>Top 7 Best Graph Analytics Tools of 2025</h3><p>As we move into 2025, a number of graph analytics tools have risen to prominence in the field. These tools offer a wide range of features to cater to various use cases. Let’s delve into these leading contenders and discover what sets them apart from the rest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jPNEMVWPQRnma2hn.png" /></figure><h3>PuppyGraph</h3><p><a href="http://puppygraph.com/">PuppyGraph</a> stands out due to being the <strong>first and only graph analytics engine in the market that can transforms existing relational data stores into a unified graph model in under 10 minutes</strong>. It natively integrate with popular lakehouses like <a href="https://iceberg.apache.org/">Apache Iceberg</a>, <a href="https://hudi.apache.org/">Apache Hudi</a>, <a href="https://delta.io/">Delta Lake</a>, <a href="https://cloud.google.com/bigquery">BigQuery</a>, <a href="https://aws.amazon.com/redshift/">Amazon Redshift</a>, <a href="https://www.snowflake.com/">Snowflake</a>, and databases like MySQL, PostgreSQL, DuckDB, etc., allowing users to execute queries directly on tables as graphs within their current data sources. This streamlines analytics and eliminates the need for complex ETL processes.</p><p>PuppyGraph’s analytics engine utilizes the Lakehouse architecture, allowing users to perform native graph queries across one or multiple of their existing relational data stores, free from the usual costs, latency, and maintenance burdens associated with graph databases. Additionally, it streamlines data management by making use of your existing data store permissions, as there isn’t another duplication of the data.</p><p>PuppyGraph sets itself apart by decoupling storage from computation, capitalizing on the advantages of columnar data lakes to deliver significant scalability and performance gains. When conducting intricate graph queries like multi-hop neighbor searches, the need arises to join and manipulate numerous records. The columnar approach to data storage enhances read efficiency, allowing for the quick fetching of only the relevant columns needed for a query, thus avoiding the exhaustive scanning of entire rows.</p><p>Moreover, PuppyGraph boosts efficiency by using min/max statistics and predicate pushdown, dramatically decreasing the volume of data that needs to be scanned. Its integration with vectorized data processing, which executes operations on batches of values simultaneously, further elevates PuppyGraph’s scalability and ensure second-level responses to complex queries. This approach not only simplifies data analysis but also enhances query performance overall. Additionally, its auto-partitioned, distributed computing architecture effectively handles petabyte-scale datasets, guaranteeing strong scalability in terms of both storage and computational power.</p><p>PuppyGraph supports two most popular graph query languages <a href="https://tinkerpop.apache.org/gremlin.html">Gremlin</a> and <a href="https://opencypher.org/">OpenCypher</a>. Not to mention, PuppyGraph has a forever free community edition that’s available via Docker install and can be easily deployed in your VPC or data center, providing you with full control of your data while guaranteeing adherence to any required data governance policies.</p><p>Here is a quick YouTube video that shows what is PuppyGraph in 100 seconds.</p><p>‍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/0*JC3LAPF7ct_X5aCX.png" /></figure><h3>AWS Neptune</h3><p>AWS Neptune is a fully managed graph database service known for its:</p><ul><li>High availability</li><li>Performance</li><li>Support for open graph APIs</li><li>Integrations with other AWS services</li></ul><p>These features make it an excellent choice for representing relationships in graph form.</p><p>A significant feature of AWS Neptune is its ability to maintain high throughput and minimize latency. The service is engineered to store a large portion of the graph in the cache, effectively reducing graph query latency and delivering timely responses even when dealing with intricate and extensive datasets.</p><p>However, AWS Neptune can be expensive for large-scale deployments, which might be a limiting factor for some businesses. Despite this, its robust performance and features make it a strong contender in the graph analytics tools arena.</p><p>In addition, AWS Neptune offers the following benefits to graph analytics users:</p><ul><li>Supports open graph APIs</li><li>High availability and performance</li><li>Excellent for representing relationships in graph form</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/0*NgqQ4ngB4uIESLgn.png" /></figure><h3>Cambridge Semantics</h3><p>Cambridge Semantics’ AnzoGraph DB is a recognized top knowledge graph platform. This platform makes Cambridge Semantics a contender in the graph analytics space. One of AnzoGraph DB’s notable features is its comprehensive set of over 40 functions designed for regular business analytics, views, and windowed aggregates. It facilitates in-graph feature engineering and transformations, empowering application developers to create custom functions and aggregates for parallel processing across graph databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/0*ygUVTmnNY_PKYiJJ.png" /></figure><p>While the pricing details for AnzoGraph DB will require you to chat with their sales team, its robust features and performance make it a compelling option for businesses seeking advanced graph analytics capabilities.</p><h3>DataStax</h3><p>DataStax specializes in real-time data for AI. One of its main offerings is Astra DB, a cloud-based database-as-a-service built on the Apache Cassandra platform. Astra DB is designed to provide developers and administrators with a scalable and cloud-native database solution.</p><ul><li>Automatic geospatial data handling</li><li>Automated geospatial software installation</li><li>Support for Apache Spark 2.0</li><li>Improved throughput for DSE Graph</li></ul><p>For those looking for graph analytics, DataStax Enterprise Graph is equipped with features that address diverse requirements, including:</p><p>These collectively offer a scalable and adaptable solution for the management of both structured data and unstructured data, ensuring that the data structure for data stored is handled efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/0*NTwTCTsirrCoqWXt.png" /></figure><p>Despite some user reviews suggesting scaling challenges, DataStax has proven to be a valuable tool for a wide range of applications in numerous industries. Its flexibility in deployment options and the integration of structured and unstructured data from multiple sources into a single authoritative data store make it an attractive option.</p><h3>Neo4j</h3><ul><li>Efficiency in storing and retrieving data with tree relationships</li><li>Excellence in persisting knowledge graphs and discovering relationships between entities</li><li>An intuitive query language called Cypher</li><li>Flexible integration options with various programming languages.</li></ul><p>One of the most well-known names in the graph database market, Neo4j is an open-source graph database known for its:</p><p>One of Neo4j’s significant features is its exceptional performance, especially in handling analytical queries. Its Parallel Runtime capability enables it to deliver up to 100X faster performance by leveraging concurrent threads across multiple CPU cores for efficient data processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/0*VmDe58-mLXwb3kTE.png" /></figure><p>However, some users have reported <a href="https://stackoverflow.com/questions/61836345/neo4j-server-crashing-on-importing-70k-rows-from-csv-unable-to-optimize-the-que">scaling challenges</a> and performance issue when running queries beyond 3-hop, limited integration with other APIs, and a lack of a built-in visualization tool. Despite these challenges, Neo4j’s robust features and performance make it a strong contender in the graph analytics tools market.</p><h3>OrientDB</h3><p>OrientDB is an open-source NoSQL database management system known for its multi-model capabilities, including support for:</p><p>It is designed to be scalable, high-performance, and reliable, making it suitable for a wide range of applications.</p><p>OrientDB supports ACID transactions and offers indexing and querying capabilities. It also supports distributed and sharded architectures, which are beneficial for businesses dealing with large volumes of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*BHoM6o522macfwoH.png" /></figure><p>Regarding challenges, OrientDB has a steep learning curve, particularly for beginners. Its community support is also limited compared to other databases. Despite these challenges, OrientDB’s robust features and free pricing model make it an appealing option for businesses seeking affordable and efficient graph analytics tools.</p><h3>MarkLogic</h3><p>MarkLogic Server is a multi-model database that has both NoSQL and trusted enterprise data management capabilities. It is the most secure multi-model database and can be deployed in any environment, making it an ideal choice for applications that deal with complex data containing multiple relationships.</p><ul><li>Comprehensive data search</li><li>APIs for application development and deployment</li><li>Support for ACID transactions</li><li>Various security features</li></ul><p>MarkLogic’s universal index offers the following features:</p><p>While MarkLogic is a standout in graph analytics tools, it comes with its own set of challenges. It is considerably more expensive than some other options, which could be a deterrent for smaller businesses or those with tight budgets. Additionally, despite its strong performance, it requires a significant investment in time and resources to fully leverage its sophisticated graph analytics features. It’s worth noting that while MarkLogic is capable of powering a data hub and offers multi-model database capabilities, these functionalities can be complex to implement and may require a steep learning curve. The platform may also require dedicated technical support and maintenance, which could add to the overall cost. Despite these challenges, MarkLogic could remain a feasible choice for businesses that need advanced data management solutions and are willing to invest.</p><h3>Conclusion</h3><p>Graph analytics tools are vital for analyzing complex relationships within interconnected data. The leading seven graph analytics tools of 2025 provide a variety of features and capabilities to meet diverse business needs, including seamless integration with existing data sources, scalable analytics, and a proprietary graph query engine optimized for speed and efficiency.</p><p>Whether you are a data scientist aiming to reveal hidden patterns in large data sets, a data engineer striving to add graph models on your existing data, or an organization looking to improve your decision-making process, this list of the best graph analytics tools offers valuable solutions. The selection of the perfect graph analytics tool ultimately rests on your particular use case and needs. Consider the features, scalability, ease of use, and compatibility with your existing systems when choosing the right tool for your needs.</p><p>When it comes to the easiest and most performant way to allow your company to leverage graph analytics, look no further than PuppyGraph. By leveraging your existing data stores, PuppyGraph can easily integrate within your existing data infrastructure and power graph analytics in a matter of minutes. Deploy, connect, and query your data sources with ease. Ready to start? Download the forever free <a href="https://www.puppygraph.com/dev-download"><strong>PuppyGraph Developer Edition</strong></a> or begin your free <a href="https://www.puppygraph.com/start-trial"><strong>30-day trial of the Enterprise Edition</strong></a> today, and lay the foundation for knowledge-driven decisions in your organization.</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/graph-analytics-tools"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12c7c8d0123a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supply Chain Graph: Visualize & Optimize Your Supply Chain Data]]></title>
            <link>https://medium.com/@liuweimo215/supply-chain-graph-visualize-optimize-your-supply-chain-data-97b94355f92b?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/97b94355f92b</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Sat, 23 Aug 2025 05:46:50 GMT</pubDate>
            <atom:updated>2025-08-23T05:46:50.625Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GVRSSU-6yNMILBlC.png" /></figure><p><a href="https://www.resilinc.com/in-the-news/supply-chain-and-labor-disruptions-increased-through-the-first-half-of-2023/">Resilinc reports</a> a staggering 8,197 supply chain disruptions in the first half of 2023 alone, a 3% increase from the supply chain and labor disruptions increased through the first half of 2023 previous year. Because of the volatile and evolving nature of the business landscape, you must understand and optimize your supply chain to stay profitable and sustainable.</p><p>In this article, we explore how supply chain graphs empower you to visualize, analyze, and ultimately improve your supply chain operations. We’ll discuss the core components, different types of graphs, and some real-world examples. In the end, we walk you through building a fully-fledged supply chain graph using <a href="https://www.puppygraph.com/">PuppyGraph</a>.</p><p>By the end, you’ll understand how this powerful tool can unlock valuable insights and drive better decision-making within your organization.</p><h3>What is a Supply Chain Graph?</h3><p>A supply chain graph is a visual representation that maps out your entire supply chain network — from raw material suppliers to end customers — using an intuitive system of connected points and lines. Think of it as a powerful lens that lets you see your complete supply chain ecosystem at a glance, while also allowing you to zoom in on specific relationships and flows.</p><p>At its core, a supply chain graph consists of two main elements:</p><ul><li><strong>Nodes</strong> (represented as points) show the key players and locations in your supply chain, such as suppliers, manufacturers, warehouses, distribution centers, and customers.</li><li><strong>Edges</strong> (shown as lines connecting the nodes) represent the relationships and interactions between these entities, such as material flows, shipments, or business partnerships.</li></ul><p>For example, in a typical supply chain graph, you might see:</p><ul><li>A supplier node connected to multiple manufacturer nodes, showing who provides critical components</li><li>Manufacturing plants connected to various warehouse nodes, indicating where finished products are stored</li><li>Distribution centers linked to retail locations, mapping out the delivery network</li><li>Customer nodes connected to retail points, revealing purchasing patterns</li></ul><p>What makes supply chain graphs particularly powerful is their ability to capture complex relationships and dependencies. Unlike traditional spreadsheets or flowcharts, a graph can simultaneously show multiple types of relationships and their interconnections. For instance, you can see not only how materials flow from suppliers to manufacturers but also how a delay at one supplier might impact multiple production lines and ultimately affect customer deliveries.</p><p>This visualization technology also enables sophisticated analysis of your supply chain network. You can:</p><ul><li>Trace products from raw materials to end customers</li><li>Identify potential bottlenecks or single points of failure</li><li>Discover hidden dependencies between different parts of your supply chain</li><li>Analyze the ripple effects of disruptions</li><li>Optimize routes and inventory levels</li><li>Monitor and improve supplier relationships</li></ul><p>The real power of supply chain graphs lies in their ability to turn complex supply chain data into clear, actionable insights. Whether you’re planning inventory levels, managing risk, or optimizing delivery routes, a supply chain graph helps you see the bigger picture while maintaining access to granular details when needed.</p><h3>Analytical Powers of Supply Chain Graphs</h3><p>Supply chain graphs derive their power from sophisticated analytical capabilities that transform complex data into actionable insights. Here’s how these analytical engines work:</p><h3>Hierarchical Analysis</h3><p>Supply chain graphs can process and analyze data at multiple levels of detail:</p><p>For example, a retailer can analyze performance from global markets down to individual stores, identifying patterns that might be invisible at any single level.</p><h3>Network Analysis Algorithms</h3><p>At the heart of supply chain graphs lie powerful algorithms that analyze network structures:</p><p>These algorithms enable sophisticated analysis of your supply chain’s structure, revealing insights about efficiency and vulnerability.</p><h3>Real-time Processing</h3><p>Supply chain graphs can process and analyze data as it changes:</p><p>This capability enables immediate responses to changing conditions, from traffic delays to supplier issues.</p><h3>Predictive Analytics</h3><p>Supply chain graphs can leverage historical data to forecast future states:</p><h3>Types of Supply Chain Graphs</h3><p>Different types of supply chain graphs serve distinct visualization and analysis needs. Each type provides a unique lens through which to view your supply chain:</p><h3>Product Flow Graphs</h3><p>Product flow graphs visualize the physical movement of materials, components, and finished goods through your supply chain network. Nodes represent physical locations like suppliers, manufacturing plants, and warehouses, while edges show the movement of goods between these locations. For example, in an automotive supply chain, these graphs track how raw materials move through production facilities to become finished vehicles, helping identify bottlenecks and optimization opportunities in the physical flow of goods.</p><h3>Information Flow Graphs</h3><p>Information flow graphs map the communication patterns across your supply chain network. They show how data like purchase orders, forecasts, and quality reports move between different systems and organizations. Consider a retail supply chain where point-of-sale data flows from stores to central planning systems, triggering reorder processes and generating supplier forecasts. These graphs help identify communication gaps and improve data sharing efficiency.</p><h3>Financial Flow Graphs</h3><p>Financial flow graphs capture monetary relationships and transactions within your supply chain. They track payment flows, cost structures, and financial risks between buyers, suppliers, and service providers. For example, in a global manufacturing operation, these graphs might reveal opportunities to optimize payment timing, reduce transaction costs, or implement early payment discounts across different regions and suppliers.</p><h3>Dependency Graphs</h3><p>Dependency graphs reveal how different elements of your supply chain rely on each other. They highlight critical relationships between suppliers, products, and resources that might not be apparent in other visualizations. For instance, in a pharmaceutical supply chain, these graphs might show how multiple finished products depend on a single active ingredient supplier, helping identify potential vulnerabilities and areas needing redundancy.</p><h3>Temporal Graphs</h3><p>Temporal graphs show how your supply chain changes over time, revealing patterns in relationships, flows, and performance metrics. They help understand seasonal variations, growth trends, and network evolution. A fashion retailer might use temporal graphs to visualize how their supply chain adapts to seasonal collections, with different suppliers and routes activating throughout the year.</p><h3>Hybrid Graphs</h3><p>Hybrid graphs combine multiple graph types to provide a comprehensive view of supply chain operations. They might simultaneously show product movements, information flows, and financial relationships. This integration helps understand how different aspects of the supply chain interact — for example, how physical product flows relate to payment terms and communication patterns.</p><p>Organizations often use multiple graph types together to gain a complete understanding of their supply chain operations. The choice of graph type depends on your specific analysis needs and the aspects of the supply chain you want to optimize.</p><h3>Applications of Supply Chain Graphs</h3><p>Let’s explore how businesses apply supply chain graphs to solve real-world challenges:</p><h3>Risk Management</h3><p>Real-world example: A global electronics manufacturer uses supply chain graphs to identify single-source components in their production line. When geopolitical tensions threatened access to a key supplier, the graph analysis helped them quickly identify alternative suppliers and reroute production, avoiding costly disruptions.</p><h3>Inventory Optimization</h3><p>Case study: A retail chain applies graph analysis to optimize inventory across 500 stores. By analyzing seasonal patterns, local demographics, and store performance, they reduced excess inventory by 23% while maintaining service levels.</p><h3>Network Design</h3><p>Example: A logistics company used graph analysis to redesign their distribution network. The analysis revealed that adding two strategic distribution centers would reduce delivery times by 40% while cutting transportation costs by 15%.</p><h3>Quality Control and Compliance</h3><p>Real-world application: A pharmaceutical company uses supply chain graphs to maintain regulatory compliance. When a quality issue emerges, they can trace affected products through their entire supply chain within minutes, enabling precise recalls and minimizing disruption.</p><h3>Sustainability Monitoring</h3><p>Case study: A consumer goods company employs graph analysis to track their environmental impact. They mapped their entire supply chain’s carbon footprint, identifying opportunities that reduced emissions by 30% while maintaining operational efficiency.</p><h3>How To Create Supply Chain Graphs?</h3><p>If you have the right toolset, you can make the best use of the versatility and viability of supply chain graphs to solve diverse challenges. <a href="https://www.puppygraph.com/">PuppyGraph</a> makes it super easy to build and deploy supply chain graphs using your existing relational data. It is the first and only graph query engine that queries the relational data from all your data sources as a unified graph, eliminating the need for complex ETL processes or data duplication. You gain access to graph-based analytics and visualization features while keeping your data in its original relational format. PuppyGrpah compliments the familiarity and reliability of relational databases with the analytical prowess of graph databases.</p><h3>Build a Supply Chain Graph With PuppyGraph</h3><p>Let’s build a supply chain graph using PuppyGraph. You can find all resources for this tutorial in the <a href="https://github.com/puppygraph/puppygraph-getting-started/tree/main/use-case-demos/optimizing-supply-chain-logistics">GitHub repository</a> for our Amazon Redshift <a href="https://www.puppygraph.com/demo-videos/optimizing-supply-chain-logistics">demo</a>. However, in this blog post, we will create a local storage version using Minio for Iceberg table format.</p><h4>Before you Start</h4><p>Before you proceed with the tutorial, make sure you have the following installed on your system:</p><ul><li>Docker and Docker Compose</li><li>Python 3</li></ul><h4>Data Preparation</h4><p>We will use the same data as our Amazon Redshift demo version. Download the <a href="https://github.com/puppygraph/puppygraph-getting-started/tree/main/use-case-demos/cloud-security-graph-demo/csv_data">csv_data</a> folder. Then run the Python script to convert the CSV data into Parquet format.</p><pre>python3 CsvToParquet.py ./csv_data ./parquet_data</pre><h4>Environment Setup and Deployment</h4><p>Create a docker compose file `docker-compose.yaml`:</p><p>YAML</p><pre>services: spark-iceberg: image: tabulario/spark-iceberg container_name: spark-iceberg build: spark/ networks: iceberg_net: depends_on: - rest - minio volumes: - ./warehouse:/home/iceberg/warehouse - ./notebooks:/home/iceberg/notebooks/notebooks - ./parquet_data:/parquet_data environment: - AWS_ACCESS_KEY_ID=admin - AWS_SECRET_ACCESS_KEY=password - AWS_REGION=us-east-1 ports: - 8888:8888 - 8180:8080 - 10000:10000 - 10001:10001 rest: image: tabulario/iceberg-rest container_name: iceberg-rest networks: iceberg_net: ports: - 8181:8181 environment: - AWS_ACCESS_KEY_ID=admin - AWS_SECRET_ACCESS_KEY=password - AWS_REGION=us-east-1 - CATALOG_WAREHOUSE=s3://warehouse/ - CATALOG_IO__IMPL=org.apache.iceberg.aws.s3.S3FileIO - CATALOG_S3_ENDPOINT=http://minio:9000 minio: image: minio/minio container_name: minio environment: - MINIO_ROOT_USER=admin - MINIO_ROOT_PASSWORD=password - MINIO_DOMAIN=minio networks: iceberg_net: aliases: - warehouse.minio ports: - 9001:9001 - 9000:9000 command: [&quot;server&quot;, &quot;/data&quot;, &quot;--console-address&quot;, &quot;:9001&quot;] mc: depends_on: - minio image: minio/mc container_name: mc networks: iceberg_net: environment: - AWS_ACCESS_KEY_ID=admin - AWS_SECRET_ACCESS_KEY=password - AWS_REGION=us-east-1 entrypoint: &gt; /bin/sh -c &quot; until (/usr/bin/mc config host add minio http://minio:9000 admin password) do echo &#39;...waiting...&#39; &amp;&amp; sleep 1; done; /usr/bin/mc rm -r --force minio/warehouse; /usr/bin/mc mb minio/warehouse; /usr/bin/mc policy set public minio/warehouse; tail -f /dev/null &quot; puppygraph: image: puppygraph/puppygraph:stable container_name: puppygraph networks: iceberg_net: environment: - PUPPYGRAPH_USERNAME=puppygraph - PUPPYGRAPH_PASSWORD=puppygraph123 ports: - &quot;8081:8081&quot; - &quot;8182:8182&quot; - &quot;7687:7687&quot; depends_on: - spark-iceberg networks: iceberg_net: name: puppy-iceberg</pre><p>The docker-compose.yaml file launches a complete environment with five key services:</p><ul><li><strong>spark-iceberg</strong>: handles Apache Iceberg data processing and analytics</li><li><strong>rest</strong>: manages Iceberg tables through a RESTful API interface</li><li><strong>minio</strong>: provides S3-compatible object storage functionality</li><li><strong>mc</strong>: configures MinIO buckets and access policies</li><li><strong>puppygraph</strong>: enables graph analysis directly on your relational data</li></ul><p>Run the command to start the services.</p><pre>docker compose up -d</pre><h4>Data Import</h4><p>Now we’ll import our data into Apache Iceberg tables. Connect to the Spark-SQL shell:</p><pre>docker exec -it spark-iceberg spark-sql</pre><p>Execute the provided SQL commands to create and populate the tables.</p><p>SQL</p><pre>CREATE DATABASE supply; CREATE EXTERNAL TABLE supply.customers ( id BIGINT, customername STRING, city STRING, state STRING, location_id BIGINT ) USING iceberg; CREATE EXTERNAL TABLE supply.distance ( id BIGINT, from_loc_id BIGINT, to_loc_id BIGINT, distance DOUBLE ) USING iceberg; CREATE EXTERNAL TABLE supply.factory ( id BIGINT, factoryname STRING, locationid BIGINT ) USING iceberg; CREATE EXTERNAL TABLE supply.inventory ( id BIGINT, productid BIGINT, locationid BIGINT, quantity INT, lastupdated TIMESTAMP, status STRING ) USING iceberg; CREATE EXTERNAL TABLE supply.locations ( id BIGINT, address STRING, city STRING, country STRING, lat DOUBLE, lng DOUBLE ) USING iceberg; CREATE EXTERNAL TABLE supply.materialfactory ( id BIGINT, material_id BIGINT, factory_id BIGINT ) USING iceberg; CREATE EXTERNAL TABLE supply.materialinventory ( id BIGINT, materialid BIGINT, locationid BIGINT, quantity BIGINT, lastupdated TIMESTAMP, status STRING ) USING iceberg; CREATE EXTERNAL TABLE supply.materialorders ( id BIGINT, materialid BIGINT, factoryid BIGINT, quantity BIGINT, orderdate TIMESTAMP, expectedarrivaldate TIMESTAMP, status STRING ) USING iceberg; CREATE EXTERNAL TABLE supply.materials ( id BIGINT, materialname STRING ) USING iceberg; CREATE EXTERNAL TABLE supply.productcomposition ( id BIGINT, productid BIGINT, materialid BIGINT, quantity BIGINT ) USING iceberg; CREATE EXTERNAL TABLE supply.products ( id BIGINT, productname STRING, price DOUBLE ) USING iceberg; CREATE EXTERNAL TABLE supply.productsales ( id BIGINT, productid BIGINT, customerid BIGINT, quantity BIGINT, saledate TIMESTAMP, totalprice DOUBLE ) USING iceberg; CREATE EXTERNAL TABLE supply.productshipment ( id BIGINT, productid BIGINT, fromlocationid BIGINT, tolocationid BIGINT, quantity BIGINT, shipmentdate TIMESTAMP, expectedarrivaldate TIMESTAMP, status STRING ) USING iceberg; INSERT INTO supply.customers SELECT id, customername, city, state, location_id FROM parquet.`/parquet_data/customers.parquet`; INSERT INTO supply.distance SELECT id, from_loc_id, to_loc_id, distance FROM parquet.`/parquet_data/distance.parquet`; INSERT INTO supply.factory SELECT id, factoryname, locationid FROM parquet.`/parquet_data/factory.parquet`; INSERT INTO supply.inventory SELECT id, productid, locationid, quantity, CAST(lastupdated AS TIMESTAMP) AS lastupdated, status FROM parquet.`/parquet_data/inventory.parquet`; INSERT INTO supply.locations SELECT id, address, city, country, lat, lng FROM parquet.`/parquet_data/locations.parquet`; INSERT INTO supply.materialfactory SELECT id, material_id, factory_id FROM parquet.`/parquet_data/materialfactory.parquet`; INSERT INTO supply.materialinventory SELECT id, materialid, locationid, quantity, CAST(lastupdated AS TIMESTAMP) AS lastupdated, status FROM parquet.`/parquet_data/materialinventory.parquet`; INSERT INTO supply.materialorders SELECT id, materialid, factoryid, quantity, CAST(orderdate AS TIMESTAMP) AS orderdate, CAST(expectedarrivaldate AS TIMESTAMP) AS expectedarrivaldate, status FROM parquet.`/parquet_data/materialorders.parquet`; INSERT INTO supply.materials SELECT id, materialname FROM parquet.`/parquet_data/materials.parquet`; INSERT INTO supply.productcomposition SELECT id, productid, materialid, quantity FROM parquet.`/parquet_data/productcomposition.parquet`; INSERT INTO supply.products SELECT id, productname, price FROM parquet.`/parquet_data/products.parquet`; INSERT INTO supply.productsales SELECT id, productid, customerid, quantity, CAST(saledate AS TIMESTAMP) AS saledate, totalprice FROM parquet.`/parquet_data/productsales.parquet`; INSERT INTO supply.productshipment SELECT id, productid, fromlocationid, tolocationid, quantity, CAST(shipmentdate AS TIMESTAMP) AS shipmentdate, CAST(expectedarrivaldate AS TIMESTAMP) AS expectedarrivaldate, status FROM parquet.`/parquet_data/productshipment.parquet`;</pre><h4>Model the graph</h4><p>Access the PuppyGraph Web UI at<a href="http://localhost:8081/"> http://localhost:8081</a> using the default credentials:</p><ul><li>Username: puppygraph</li><li>Password: puppygraph123</li></ul><p>Upload the schema using the provided schema.json file, which defines the schema of the supply chain graph. This schema extracts vertices and edges from the relational tables.</p><p>JSON</p><pre>{ &quot;catalogs&quot;: [ { &quot;name&quot;: &quot;iceberg_test&quot;, &quot;type&quot;: &quot;iceberg&quot;, &quot;metastore&quot;: { &quot;type&quot;: &quot;rest&quot;, &quot;uri&quot;: &quot;http://iceberg-rest:8181&quot; }, &quot;storage&quot;: { &quot;useInstanceProfile&quot;: &quot;false&quot;, &quot;accessKey&quot;: &quot;admin&quot;, &quot;secretKey&quot;: &quot;password&quot;, &quot;enableSsl&quot;: &quot;false&quot;, &quot;endpoint&quot;: &quot;http://minio:9000&quot;, &quot;enablePathStyleAccess&quot;: &quot;true&quot;, &quot;type&quot;: &quot;S3&quot; } } ], &quot;graph&quot;: { &quot;vertices&quot;: [ { &quot;label&quot;: &quot;Product&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;products&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;productname&quot;, &quot;alias&quot;: &quot;productname&quot; }, { &quot;type&quot;: &quot;Double&quot;, &quot;field&quot;: &quot;price&quot;, &quot;alias&quot;: &quot;price&quot; } ] } }, { &quot;label&quot;: &quot;Factory&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;factory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;factoryname&quot;, &quot;alias&quot;: &quot;factoryname&quot; }, { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;locationid&quot;, &quot;alias&quot;: &quot;locationid&quot; } ] } }, { &quot;label&quot;: &quot;Location&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;locations&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;address&quot;, &quot;alias&quot;: &quot;address&quot; }, { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;city&quot;, &quot;alias&quot;: &quot;city&quot; }, { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;country&quot;, &quot;alias&quot;: &quot;country&quot; }, { &quot;type&quot;: &quot;Double&quot;, &quot;field&quot;: &quot;lat&quot;, &quot;alias&quot;: &quot;lat&quot; }, { &quot;type&quot;: &quot;Double&quot;, &quot;field&quot;: &quot;lng&quot;, &quot;alias&quot;: &quot;lng&quot; } ] } }, { &quot;label&quot;: &quot;Inventory&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;inventory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Int&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; }, { &quot;type&quot;: &quot;DateTime&quot;, &quot;field&quot;: &quot;lastupdated&quot;, &quot;alias&quot;: &quot;lastupdated&quot; }, { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;status&quot;, &quot;alias&quot;: &quot;status&quot; } ] } }, { &quot;label&quot;: &quot;MatInventory&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;materialinventory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; }, { &quot;type&quot;: &quot;DateTime&quot;, &quot;field&quot;: &quot;lastupdated&quot;, &quot;alias&quot;: &quot;lastupdated&quot; }, { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;status&quot;, &quot;alias&quot;: &quot;status&quot; } ] } }, { &quot;label&quot;: &quot;Material&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;materials&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;materialname&quot;, &quot;alias&quot;: &quot;materialname&quot; } ] } }, { &quot;label&quot;: &quot;Customer&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;customers&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;customername&quot;, &quot;alias&quot;: &quot;customername&quot; }, { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;city&quot;, &quot;alias&quot;: &quot;city&quot; } ] } }, { &quot;label&quot;: &quot;ProductOrder&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;productsales&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;customerid&quot;, &quot;alias&quot;: &quot;customerid&quot; }, { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;productid&quot;, &quot;alias&quot;: &quot;productid&quot; }, { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; }, { &quot;type&quot;: &quot;DateTime&quot;, &quot;field&quot;: &quot;saledate&quot;, &quot;alias&quot;: &quot;saledate&quot; }, { &quot;type&quot;: &quot;Double&quot;, &quot;field&quot;: &quot;totalprice&quot;, &quot;alias&quot;: &quot;totalprice&quot; } ] } }, { &quot;label&quot;: &quot;MaterialOrder&quot;, &quot;oneToOne&quot;: { &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;materialorders&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;materialid&quot;, &quot;alias&quot;: &quot;materialid&quot; }, { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;factoryid&quot;, &quot;alias&quot;: &quot;factoryid&quot; }, { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; }, { &quot;type&quot;: &quot;DateTime&quot;, &quot;field&quot;: &quot;orderdate&quot;, &quot;alias&quot;: &quot;orderdate&quot; }, { &quot;type&quot;: &quot;DateTime&quot;, &quot;field&quot;: &quot;expectedarrivaldate&quot;, &quot;alias&quot;: &quot;expectedarrivaldate&quot; }, { &quot;type&quot;: &quot;String&quot;, &quot;field&quot;: &quot;status&quot;, &quot;alias&quot;: &quot;status&quot; } ] } } ], &quot;edges&quot;: [ { &quot;label&quot;: &quot;FactoryLocation&quot;, &quot;fromVertex&quot;: &quot;Factory&quot;, &quot;toVertex&quot;: &quot;Location&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;factory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;from_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;locationid&quot;, &quot;alias&quot;: &quot;locationid&quot; } ] }, &quot;attributes&quot;: [] }, { &quot;label&quot;: &quot;ProductInventory&quot;, &quot;fromVertex&quot;: &quot;Product&quot;, &quot;toVertex&quot;: &quot;Inventory&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;inventory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;productid&quot;, &quot;alias&quot;: &quot;productid&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;to_id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Int&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; }, { &quot;type&quot;: &quot;DateTime&quot;, &quot;field&quot;: &quot;lastupdated&quot;, &quot;alias&quot;: &quot;lastupdated&quot; } ] }, { &quot;label&quot;: &quot;InventoryLocation&quot;, &quot;fromVertex&quot;: &quot;Inventory&quot;, &quot;toVertex&quot;: &quot;Location&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;inventory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;from_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;locationid&quot;, &quot;alias&quot;: &quot;locationid&quot; } ] }, &quot;attributes&quot;: [] }, { &quot;label&quot;: &quot;CustomerLocation&quot;, &quot;fromVertex&quot;: &quot;Customer&quot;, &quot;toVertex&quot;: &quot;Location&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;customers&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;from_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;location_id&quot;, &quot;alias&quot;: &quot;location_id&quot; } ] }, &quot;attributes&quot;: [] }, { &quot;label&quot;: &quot;ProductComposition&quot;, &quot;fromVertex&quot;: &quot;Product&quot;, &quot;toVertex&quot;: &quot;Material&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;productcomposition&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;productid&quot;, &quot;alias&quot;: &quot;productid&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;materialid&quot;, &quot;alias&quot;: &quot;materialid&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; } ] }, { &quot;label&quot;: &quot;ProOrderToPro&quot;, &quot;fromVertex&quot;: &quot;ProductOrder&quot;, &quot;toVertex&quot;: &quot;Product&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;productsales&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;from_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;productid&quot;, &quot;alias&quot;: &quot;productid&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; } ] }, { &quot;label&quot;: &quot;ProOrderToCus&quot;, &quot;fromVertex&quot;: &quot;ProductOrder&quot;, &quot;toVertex&quot;: &quot;Customer&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;productsales&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;from_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;customerid&quot;, &quot;alias&quot;: &quot;customerid&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; } ] }, { &quot;label&quot;: &quot;MatOrderToMat&quot;, &quot;fromVertex&quot;: &quot;MaterialOrder&quot;, &quot;toVertex&quot;: &quot;Material&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;materialorders&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;from_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;materialid&quot;, &quot;alias&quot;: &quot;materialid&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; } ] }, { &quot;label&quot;: &quot;MatOrderToFac&quot;, &quot;fromVertex&quot;: &quot;MaterialOrder&quot;, &quot;toVertex&quot;: &quot;Factory&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;materialorders&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;from_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;factoryid&quot;, &quot;alias&quot;: &quot;factoryid&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; } ] }, { &quot;label&quot;: &quot;MaterialInventory&quot;, &quot;fromVertex&quot;: &quot;Material&quot;, &quot;toVertex&quot;: &quot;MatInventory&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;materialinventory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;materialid&quot;, &quot;alias&quot;: &quot;materialid&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;to_id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;quantity&quot;, &quot;alias&quot;: &quot;quantity&quot; }, { &quot;type&quot;: &quot;DateTime&quot;, &quot;field&quot;: &quot;lastupdated&quot;, &quot;alias&quot;: &quot;lastupdated&quot; } ] }, { &quot;label&quot;: &quot;MatInventoryLocation&quot;, &quot;fromVertex&quot;: &quot;MatInventory&quot;, &quot;toVertex&quot;: &quot;Location&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;materialinventory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;from_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;locationid&quot;, &quot;alias&quot;: &quot;locationid&quot; } ] }, &quot;attributes&quot;: [] }, { &quot;label&quot;: &quot;MatFactory&quot;, &quot;fromVertex&quot;: &quot;Material&quot;, &quot;toVertex&quot;: &quot;Factory&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;materialfactory&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;material_id&quot;, &quot;alias&quot;: &quot;material_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;factory_id&quot;, &quot;alias&quot;: &quot;factory_id&quot; } ] }, &quot;attributes&quot;: [] }, { &quot;label&quot;: &quot;Distance&quot;, &quot;fromVertex&quot;: &quot;Location&quot;, &quot;toVertex&quot;: &quot;Location&quot;, &quot;tableSource&quot;: { &quot;catalog&quot;: &quot;iceberg_test&quot;, &quot;schema&quot;: &quot;supply&quot;, &quot;table&quot;: &quot;distance&quot; }, &quot;id&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;id&quot;, &quot;alias&quot;: &quot;id&quot; } ] }, &quot;fromId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;from_loc_id&quot;, &quot;alias&quot;: &quot;from_loc_id&quot; } ] }, &quot;toId&quot;: { &quot;fields&quot;: [ { &quot;type&quot;: &quot;Long&quot;, &quot;field&quot;: &quot;to_loc_id&quot;, &quot;alias&quot;: &quot;to_loc_id&quot; } ] }, &quot;attributes&quot;: [ { &quot;type&quot;: &quot;Double&quot;, &quot;field&quot;: &quot;distance&quot;, &quot;alias&quot;: &quot;distance&quot; } ] } ] } }</pre><p>Feel free to check out the graph data in the <a href="https://docs.puppygraph.com/graph-visualization/dashboard/?h=dash">dashboard</a>.</p><h4>Query the Graph</h4><ul><li>Select <strong>Query </strong>to open the query panel. The <strong>Gremlin Query</strong> tab allows you to interactively compose queries using Gremlin.</li><li>After each query, select <strong>Clear </strong>to clear the graph panel before executing the next query. This makes sure that the visualization of each query result remains clear and updated.</li></ul><p>Now let’s run some example queries:</p><p>Execute the following query to find the five best-selling products:</p><pre>g.V().hasLabel( &#39;ProductOrder&#39; ).as( &#39;order&#39; ) .group().by( &#39;productid&#39; ).by(__.values( &#39;quantity&#39; ).sum()).as( &#39;sales&#39; ) .order(local).by(values, desc) .unfold() .limit( 5 ) .project( &#39;productid&#39; , &#39;total_sales&#39; ) .by(keys) .by(value)</pre><p>Now let’s dive into the orders for a specific best selling product-the one with product ID 88. We also want to know details like whether the product has sufficient inventory, the materials that product depends on, and inventory details of those materials.</p><pre>g.V( &quot;Product[88]&quot; ).as( &#39;product&#39; ) .union( __.out( &#39;ProductInventory&#39; ).out( &#39;InventoryLocation&#39; ).path(), __.in( &#39;ProOrderToPro&#39; ).path(), __.out( &#39;ProductComposition&#39; ).out( &#39;MaterialInventory&#39; ).out( &#39;MatInventoryLocation&#39; ).path(), __.out( &#39;ProductComposition&#39; ).in( &#39;MatOrderToMat&#39; ).out( &#39;MatOrderToFac&#39; ).out( &#39;FactoryLocation&#39; ).path()</pre><p>For more example queries, see the <a href="https://github.com/puppygraph/puppygraph-getting-started/tree/main/use-case-demos/optimizing-supply-chain-logistics">GitHub repository</a> of the tutorial. If you prefer to watch a video format for this guide, see the accompanying video below.</p><h4>Clean up</h4><p>When finished, stop and remove the services:</p><pre>sudo docker compose down --volumes --remove-orphans</pre><h3>Conclusion</h3><p>Supply chain graphs transform complex operational data into clear, actionable insights. While traditional implementations require complex ETL processes and dedicated graph databases, PuppyGraph makes these capabilities accessible by operating directly on your existing relational data. This eliminates the need for data migration while maintaining exceptional performance and scalability.</p><p>To try out PuppyGraph for yourself and see how it can help your business, get the forever free <a href="https://www.puppygraph.com/dev-download">PuppyGraph Developer Edition</a>, or <a href="https://www.puppygraph.com/book-demo">book a free demo</a> today with our graph expert team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gFtnlRpEk5p5EomM.png" /></figure><p>Graph Your Data In 10 Minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/0*zF7np0HcaABNaHH-.jpg" /></figure><h3>Get started with PuppyGraph!</h3><p>PuppyGraph empowers you to seamlessly query one or multiple data stores as a unified graph model.</p><p>Based on the Memory and CPU of the server that runs PuppyGraph.</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/supply-chain-graph"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97b94355f92b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Graph Algorithms: A Developer’s Guide]]></title>
            <link>https://medium.com/@liuweimo215/graph-algorithms-a-developers-guide-94a5e245696a?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/94a5e245696a</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Sat, 23 Aug 2025 05:45:44 GMT</pubDate>
            <atom:updated>2025-08-23T05:45:44.466Z</atom:updated>
            <content:encoded><![CDATA[<p>Graph algorithms address a wide variety of problems by representing entities as nodes and relationships as edges. Want to find the fastest route through a city? Spot influential users on a social media platform? Or detect communities hidden in a sprawling network? Graph algorithms provide the tools to make sense of it all.</p><p>In this article, we’ll dive into the world of graph algorithms, breaking them into two broad categories: <strong>classical algorithms </strong>and <strong>data-oriented techniques</strong>, exploring high-level concepts for those new to graphs, and the minutia of common algorithms that can be applied against a graph. Let’s start by digging into some of the fundamental concepts of graphs.</p><h3>Introduction to Graphs</h3><p>Graphs provide a versatile framework for modeling relationships between entities. Whether you’re mapping social connections, optimizing routes, or analyzing web links, graphs offer a powerful way to visualize and solve complex problems that are tougher to solve with more traditional means, such as<a href="https://www.puppygraph.com/blog/graph-database-vs-relational-database"> relational database</a> queries.</p><h3>What is a Graph?</h3><h4>Definition and Basic Concepts</h4><p>A type of non-linear data structure, a graph consists of nodes and edges. Each node, also called vertices, represents an entity, while each<a href="https://www.puppygraph.com/blog/relationship-graphs"> relationship in the graph</a>, represented as an edge, signifies a relationship between two vertices. This fundamental concept in graph theory allows us to model a wide array of real-world scenarios.</p><h4>Importance in Network Analysis</h4><p>Graphs are indispensable in network analysis because they easily capture and represent complex relationships. They are used in numerous applications, from social media networks and web page link structures to GPS navigation systems. For instance, in social network analysis, graphs help identify influential users and detect community structures. In web crawlers, they model the connections between web pages, enabling efficient indexing and search. Graphs also play a crucial role in network topology discovery, helping map and optimize communication network layout.</p><h3>Types of Graphs</h3><p>Depending on the data and analysis required, graphs can be represented in a few different ways. Each type, or graph class, brings value to different use cases. Let’s take a look at some of the most common.</p><h4>Undirected vs. Directed Graphs</h4><p>Graphs can be categorized into undirected and directed types. In an undirected graph, edges between adjacent vertices lack direction, signifying mutual relationships between all graph vertices, which is useful for modeling bidirectional scenarios like friendships in social networks.</p><p>Conversely, a directed graph has edges with specific directions, indicating one-way relationships between adjacent nodes. They are crucial for representing hierarchical structures or processes with clear flows, such as task scheduling or web page ranking.</p><h4>Weighted vs. unweighted graphs</h4><p>Graphs are also classified as weighted or unweighted. In a weighted graph, each edge has a weight or cost, representing factors like distance or time, which is useful in applications like transportation networks. Unweighted graphs treat all edges equally, focusing on the presence or absence of connections.</p><h4>Labeled vs. unlabeled graphs</h4><p>Another key distinction lies in whether the vertices (and sometimes edges) are labeled. In a labeled graph, each vertex has a unique identifier, allowing for precise references to specific vertices. This is useful in many real-world applications, such as social networks or web graphs, where each node (e.g., a person or webpage) must be uniquely identifiable. In an unlabeled graph, there is no inherent distinction between vertices, emphasizing the graph’s structure rather than the identities of individual nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Lvz32GNsip5HPt1I.png" /></figure><p><strong>Figure: Example of labeled vs. unlabeled graphs</strong></p><p>Understanding these graph types-undirected vs. directed, weighted vs. unweighted, and labeled vs. unlabeled-is vital in graph theory for modeling and analyzing complex relationships in fields like computer science, physics, and social sciences. Choosing the right graph type provides deeper insights and practical solutions to various problems.</p><h3>Classical Graph Algorithms</h3><p>Classical graph algorithms tackle well-defined tasks, such as finding routes, building trees, or maximizing flow. Each graph algorithm often has formal proofs of correctness and known performance bounds. Here are some primary categories you’ll encounter.</p><h3>Traversal &amp; Connectivity</h3><p>Traversal and connectivity form the basis of many graph operations. They help answer fundamental questions such as “ <strong>Which nodes can reach which other nodes?”</strong> and “ <strong>How do you visit them systematically?</strong>”</p><h4>Key Concepts</h4><ol><li><strong>Traversal</strong></li></ol><ul><li><strong>Depth-First Search (DFS)</strong>: Moves down a path as far as possible before backtracking.</li><li><strong>Breadth-First Search (BFS)</strong>: Visits nodes in layers, starting from a source and exploring neighbors level by level.</li></ul><ol><li><strong>Connected Components</strong></li></ol><ul><li><strong>Undirected Graph</strong>: All nodes reachable from one another form a connected component.</li><li><strong>Directed Graph</strong>:</li><li><strong>Strongly Connected Component (SCC)</strong>: A set of nodes where each node is reachable from every other node in the same set.<strong>‍</strong></li><li><strong>Weakly Connected Component</strong>: Nodes that would form a connected component if you replaced all directed edges with undirected edges.</li></ul><p><strong>Common Algorithms</strong></p><h4>Practical Applications</h4><p>Traversal and connectivity algorithms often serve as the first step before tackling more specialized tasks. For instance, you might run a DFS to check connectivity before applying shortest-path algorithms on a subgraph or use SCC detection to simplify a complex directed network into a smaller, more manageable representation.</p><h3>Shortest Paths</h3><p>Determining a least-cost route underpins many real-world problems, such as finding the fastest way between two cities or minimizing latency in a network. Costs can take different forms-distance, time, or monetary expense. The choice of shortest path algorithm depends on graph structure, edge weights (positive or negative), and whether you need multiple routes or just one.</p><h4>Key Concepts</h4><h4>Common Algorithms</h4><h4>Practical Applications</h4><p>Shortest-path algorithms help solve a fundamental optimization problem in numerous domains. Whether edges represent road distances, data transfer speeds, or financial costs, having an efficient way to find minimal routes can lead to faster decisions, lower expenses, and better use of resources.</p><h3>Minimum Spanning Tree</h3><p>An MST connects all nodes in a weighted graph with the smallest possible total edge cost without forming any cycles. This concept is central to network design and clustering tasks that involve linking points at minimal expense.</p><h4>Key Concepts</h4><h4>Common Algorithms</h4><h4>Practical Applications</h4><p>MST algorithms help minimize costs in various domains, from laying out a road network with the least total distance to creating an energy grid that reaches all locations at minimal expense. By ensuring no cycles and linking all nodes, these solutions provide a foundational way to efficiently connect items in a weighted graph.</p><h3>Network Flow</h3><p>Network flow problems involve sending some “commodity” (such as data, water, or vehicles) from a source to a sink within a network, subject to capacity constraints on the edges. Broadly referred to as a maximum flow algorithm, algorithms in this category aim to maximize flow, detect bottlenecks, or compute minimum cuts that block further movement.</p><h4>Key Concepts</h4><ul><li><strong>Flow</strong>: A value assigned to each edge, indicating how much of a resource passes along it.</li><li><strong>Capacity Constraints</strong>: Each edge has a maximum allowed flow, known as a maximum flow problem.</li><li><strong>Conservation of Flow</strong>: Except for the source and sink, the inflow to a node must equal its outflow.</li><li><strong>Max-Flow Min-Cut Theorem</strong>: The maximum flow in a network equals the capacity of the minimum cut that separates the source and sink.</li></ul><h4>Common Algorithms</h4><h4>Practical Applications</h4><p>Flow algorithms reveal how to move resources from one point to another under constraints, helping planners optimize capacity usage. Whether routing internet traffic or assigning workers to tasks, the max-flow framework provides a rigorous way to find bottlenecks and allocate limited resources effectively.</p><h3>Directed Acyclic Graphs (DAGs)</h3><p>A DAG is a directed graph with no cycles. This property allows for an order among all the vertices in the graph, making specific problems more straightforward than in graphs that permit cycles.</p><h4>Key Concepts</h4><h4>Common Algorithms</h4><h4>Practical Applications</h4><p>DAGs capture scenarios with clear directional flows and no feedback loops. By leveraging their acyclic nature, algorithms become more efficient, enabling straightforward scheduling, sequencing, and dependency tracking.</p><h3>Data Science-Oriented Graph Algorithms</h3><p>Algorithms in this category often aim to extract insights or patterns from large networks. They measure centrality, detect communities, or generate vector representations of nodes. Each approach reveals different aspects of a graph’s structure, helping analysts pinpoint influential nodes and group-related entities or embed<a href="https://www.puppygraph.com/blog/graph-data-science"> graph data for machine learning</a> tasks. Understanding these graph algorithms also requires a solid grasp of data structures, which play a fundamental role in implementing these algorithms effectively.</p><h3>Centrality</h3><p>Centrality measures help identify “important” or “influential” nodes in a network. Each measure looks at different aspects, from direct connections to overall positioning in the graph. By quantifying node importance, analysts can prioritize resources, detect pivotal points in infrastructure, or spot key influencers in social networks.</p><h4>Key Concepts</h4><h4>Common Measures</h4><h4>Practical Applications</h4><p>Centrality translates the abstract notion of “importance” into quantifiable metrics. This helps decision-makers quickly identify key players or vulnerable spots in complex networks. Whether gauging a website’s rank or spotting weak links in a utility grid, centrality metrics offer practical insights for managing and optimizing interconnected systems.</p><h3>Community Detection &amp; Clustering</h3><p>These methods group nodes that are more densely connected than the rest of the graph. They help identify hidden structures, such as social circles or product groupings, by revealing how nodes cluster based on connectivity.</p><h4>Key Concepts</h4><h4>Common Approaches</h4><h4>Practical Applications</h4><p>Community detection reveals hidden organization in complex systems, making it possible to understand how nodes group together. This can guide targeted marketing, enable personalized recommendations, or shed light on the underlying structure of everything from social circles to biological pathways.</p><h3>Graph Embeddings</h3><p>Embeddings map nodes to a lower-dimensional space, capturing structural relationships in numerical form. This unlocks techniques from traditional machine learning-like clustering, classification, and anomaly detection-since each node becomes a vector that standard algorithms can handle.</p><h4>Key Concepts</h4><h4>Common Techniques</h4><h4>Practical Applications</h4><ul><li><strong>Recommendation Systems</strong>: Compute user or item embeddings, then recommend items to users with similar vector representations.</li><li><strong>Link Prediction</strong>: Predict future or missing connections in social networks or<a href="https://www.puppygraph.com/blog/knowledge-graph-in-machine-learning"> knowledge graphs</a> by comparing node vectors.</li><li><strong>Graph Clustering &amp; Classification</strong>: Treat node vectors as points in a geometric space, applying standard ML techniques to group or label nodes.</li></ul><p>Transforming graph data into numerical embeddings makes powerful machine-learning tools available. Instead of dealing with complex adjacency structures, analysts and engineers can use familiar algorithms for clustering, classification, or anomaly detection, all while preserving meaningful relationships from the original graph.</p><h3>Working with Graph Databases</h3><p>Storing and querying graph data in a specialized database can streamline the application of graph algorithms. Unlike relational systems, these databases prioritize relationships and traversals, making many graph operations more direct and efficient.</p><h3>Native Graph Storage</h3><p><strong>Benefit</strong>: Nodes, edges, and properties follow a structure that closely matches the graph model. This reduces the overhead of joins or multiple lookups common in relational schemas.</p><p><strong>Implementation Approach</strong>: Many platforms store data using a property-graph model or adjacency-based indexing, which can handle large-scale or continuously changing graphs.</p><h3>Built-In Algorithms</h3><ul><li><strong>Idea</strong>: Some systems offer ready-to-use procedures for PageRank, shortest paths, or community detection, reducing the need for external libraries.</li><li><strong>Use Cases</strong>: Real-time recommendation engines or fraud detection pipelines benefit from the ability to update data and run algorithms within the same system.</li></ul><h3>Scalability</h3><ul><li><strong>Horizontal Sharding</strong>: Large graphs may be split across multiple machines.</li><li><strong>Challenge</strong>: Keeping queries and traversals efficient can be harder when data is distributed over multiple nodes.</li></ul><h3>Query Languages</h3><p>Using a<a href="https://www.puppygraph.com/blog/best-graph-databases"> graph database</a>, developers can store, query, and analyze interconnected data under one roof. This approach suits applications with frequent, flexible graph operations-such as recommendation systems, social media analytics, or knowledge graphs-by reducing data movement and simplifying the workflow.</p><h3>Zero-ETL Graph Algorithms With PuppyGraph</h3><p>Native graph databases are well-suited for OLTP applications due to their row-based storage design. They are optimized for operations like adding, updating, or removing vertices and edges, but they are less efficient for running complex analytical queries on large datasets.</p><p><a href="https://www.puppygraph.com/"><strong>PuppyGraph</strong></a> solves this challenge by enabling users to query relational data as a graph-without the need for ETL processes or a separate graph database. As the first and only graph query engine of its kind, PuppyGraph integrates directly with popular relational data lakes and warehouses. This allows users to perform high-performance analytics while keeping their data in its existing storage systems.</p><p>With flexible deployment options-including <a href="https://www.puppygraph.com/download-confirmation">free Docker containers</a>, <a href="https://cta-service-cms2.hubspot.com/web-interactives/public/v1/track/click?encryptedPayload=AVxigLKn7XlEWjdv53BwKqtpTDNPUJB5Uv1O34gtwTx5cOj9eJUA7tjuH0C9TMXugWT%2BFNZaDP4t1zsrKiHppw%2FiMyEdn1pZG5s5RoakDx%2BZ958MisOFaYpl%2FphT8CD3t2TTw8MmLkKDSsY5XD1Rh5eAlnsN76%2B%2FbTIyiYphsB2LvL4%3D&amp;portalId=24330658&amp;webInteractiveContentId=158424686993&amp;webInteractiveId=305867834459&amp;containerType=EMBEDDED&amp;pageUrl=https%3A%2F%2Fwww.puppygraph.com%2Fdownload-confirmation&amp;pageTitle=PuppyGraph+%7C+Download+Confirmation&amp;referrer=&amp;userAgent=Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac+OS+X+10_15_7%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F131.0.0.0+Safari%2F537.36&amp;hutk=048161d993aca0a55aa8c8b7847b675b&amp;hssc=48375865.16.1737083982981&amp;hstc=48375865.048161d993aca0a55aa8c8b7847b675b.1709227938705.1736804384379.1737083982981.319&amp;hsfp=560670869&amp;__hstc=48375865.048161d993aca0a55aa8c8b7847b675b.1709227938705.1736804384379.1737083982981.319&amp;__hssc=48375865.16.1737083982981&amp;__hsfp=560670869">AWS AMI</a>, and <a href="https://console.cloud.google.com/marketplace/product/puppygraph-public/puppygraph-professional">GCP Marketplace</a> -PuppyGraph supports both self-hosted and cloud environments. Setup is quick and straightforward, taking as little as 10 minutes, which is significantly faster than the setup process for solutions like graph databases.</p><p>PuppyGraph also excels in integration, supporting direct queries on data sources like Apache Iceberg, Delta Lake, Databricks, Snowflake, AWS Redshift, BigQuery, and SQL databases. Its zero-ETL approach means there’s no need for data migration, allowing users to perform analytics on their existing infrastructure seamlessly.</p><p>Additionally, PuppyGraph supports both <a href="https://docs.puppygraph.com/reference/cypher-query-language/?h=cypher"><strong>OpenCypher</strong></a> and <a href="https://docs.puppygraph.com/querying/querying-using-gremlin/?h=gremlin"><strong>Gremlin</strong></a> query languages. It comes with <a href="https://docs.puppygraph.com/graph-algorithms/">built-in graph algorithms</a> that operate directly on relational data, making it a powerful tool for analyzing complex relationships without disrupting your current workflows.</p><h3>Conclusion</h3><p>Graph algorithms provide robust ways to understand and solve problems in any domain where relationships matter. Classical approaches target well-defined tasks, such as finding optimal routes or ensuring connectivity, while data-oriented methods measure and reveal insights about a network’s structure. Together, they cover many use cases-from navigating transportation networks to analyzing social media communities. By examining both algorithm categories and exploring practical aspects like database integration and scalability, you’ve seen how to choose the right approach for different needs. As graphs grow in size and complexity, these algorithms remain essential tools for transforming interconnected data into actionable knowledge.</p><p>Interested in trying PuppyGraph? Download the forever free<a href="https://www.puppygraph.com/dev-download"> PuppyGraph Developer Edition</a> or start <a href="https://www.puppygraph.com/book-demo">book a demo today</a> with our graph expert team.</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/graph-algorithms"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94a5e245696a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recreating Wiz’s Security Graph with PuppyGraph]]></title>
            <link>https://medium.com/@liuweimo215/recreating-wizs-security-graph-with-puppygraph-5cda123bd45b?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cda123bd45b</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 11:11:46 GMT</pubDate>
            <atom:updated>2025-08-15T11:11:46.721Z</atom:updated>
            <content:encoded><![CDATA[<p>The world is a graph, not a table. It’s time our tooling reflected this.</p><p>Modern cybersecurity relies heavily on analyzing and visualizing complex relationships among entities such as users, devices, applications, and threats. <a href="https://www.wiz.io/">Wiz</a> ‘s Security Graph has emerged as an innovative solution to this challenge, offering a streamlined way to map and assess security risks within cloud environments. By using graph database technology, Wiz’s Security Graph provides an unparalleled view into interconnected cloud resources, vulnerabilities, and risks.</p><p>But what if you could recreate this powerful tool using <a href="https://www.puppygraph.com/">PuppyGraph</a>, a versatile and high-performance graph database alternative? PuppyGraph’s unique architecture eliminates the need for complex ETL processes. It offers petabyte-scale scalability and sub-second query performance, making it ideal for <a href="https://www.puppygraph.com/cybersecurity">enhancing your cybersecurity posture with real-time graph analysis</a>. This blog post will take you through a step-by-step guide to rebuilding a Wiz-like security graph using PuppyGraph, while also diving into the core components and key features of Wiz’s approach.</p><h3>What is Wiz’s security graph?</h3><p>Wiz’s Security Graph is an advanced model designed to provide detailed visibility and actionable insights into cloud environments. It underpins Wiz’s cloud security platform, enabling businesses to detect, prioritize, and address security risks with precision.</p><p>Central to its design is a graph database that mirrors the structure of cloud ecosystems, mapping entities like virtual machines, APIs, containers, and databases, while also analyzing the intricate web of relationships between these entities. This dynamic representation allows organizations to gain a unified view of their cloud infrastructure and assess potential vulnerabilities effectively.</p><p>The Security Graph excels by integrating key functionalities such as real-time monitoring, contextual risk evaluation, and attack path analysis. Through these capabilities, it empowers security teams to not only visualize their cloud security posture but also act on critical insights to fortify their defenses. Overall, Wiz’s Security Graph serves as the foundation for Wiz’s cloud security platform, enabling organizations to effectively identify, prioritize, and remediate security risks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aDfpGcxly8pJDncf.png" /></figure><p>Figure: Image from Wiz’s <a href="https://www.wiz.io/blog/wiz-security-graph-enhances-cloud-incident-response">blog</a></p><h3>How does Wiz security graph work</h3><p>In this <a href="https://aws.amazon.com/blogs/database/the-world-is-a-graph-how-wiz-reimagines-cloud-security-using-a-graph-in-amazon-neptune/">blog</a> written by Wiz’s CTO, Ami Luttwak, Wiz’s Security Graph leverages the power of a graph database to revolutionize cloud security. Through Comprehensive Data Collection and Advanced Analysis Capabilities, Wiz constructs a contextualized and dynamic model of your cloud environment, uncovering hidden risks and enabling effective prioritization and remediation.</p><h3>Comprehensive Data Collection</h3><p>The foundation of Wiz’s Security Graph is a thorough data collection process that captures a wide range of information and organizes it within a graph database to highlight connections and dependencies:</p><ul><li><strong>API Scanning</strong>: Wiz collects configuration data from cloud provider APIs, building a comprehensive inventory of cloud services and linking them within the graph.</li><li><strong>Workload Scanning</strong>: Metadata from operating systems, applications, and containers is added to the graph to reveal potential vulnerabilities and software dependencies.</li><li><strong>Data Scanning</strong>: By scanning cloud storage for sensitive data and exposure risks, Wiz incorporates this information into the graph, identifying relationships that could lead to data breaches.</li><li><strong>IAM Scanning</strong>: Wiz maps access control configurations to identify excessive permissions and privilege escalation paths, integrating them into the graph to uncover potential attack vectors.</li></ul><p>This interconnected dataset allows the graph database to represent complex relationships, enabling deeper insights into the security posture.</p><h3>Advanced Analysis Capabilities</h3><p>Once the data is collected, Wiz utilizes the graph database for advanced analysis, revealing critical insights that would be difficult to detect otherwise:</p><ul><li><strong>Visualize Interconnections</strong>: The graph structure highlights how resources interact, making it easier to identify attack paths and potential risks.</li><li><strong>Uncover Hidden Risks</strong>: By analyzing relationships in the graph, Wiz detects toxic combinations-seemingly minor issues that become critical when combined.</li><li><strong>Prioritize Risks</strong>: The graph database allows Wiz to evaluate the likelihood and impact of threats, enabling security teams to focus on the most pressing issues.</li><li><strong>Perform Root Cause Analysis</strong>: The graph traces attack paths and identifies exploited vulnerabilities, helping security teams understand and remediate incidents effectively.</li></ul><p>By combining these diverse data sources and advanced analysis techniques, the Wiz Security Graph simplifies complex cloud environments while providing comprehensive security visibility and control.</p><h3>‍‍<br>Key features of Wiz’s security graph</h3><p>Wiz’s Security Graph delivers a suite of key features that empower organizations to proactively secure their cloud environments. These features are designed to leverage the comprehensive data collection and advanced analysis capabilities of the Security Graph, turning insights into actionable security measures.</p><h3>Core Capabilities</h3><h3>Risk Assessment</h3><h3>Incident Response</h3><h3>Visualization and Analysis</h3><p>By combining these features, Wiz’s Security Graph delivers an unparalleled level of clarity, helping organizations protect their cloud environments against evolving threats while improving operational efficiency.</p><h3>Guide to build a security graph with PuppyGraph</h3><p>We’ve explored how Wiz’s security graph provides powerful capabilities for cloud security posture management through its interconnected view of cloud assets and security findings. While Wiz offers an excellent solution, you can also build similar security graph capabilities directly on your existing relational data using PuppyGraph.</p><p><strong>PuppyGraph is the first and only graph query engine that queries relational data as a graph, eliminating the need for complex ETL processes or data duplication. </strong>It allows you to create graph views and run graph queries while keeping your data in its original relational format. This approach combines the familiarity and reliability of relational databases with the analytical power of graph databases.</p><p>Building a Wiz-like security graph with PuppyGraph is straightforward and involves two main steps: deploying PuppyGraph and connecting it to your data sources. The process doesn’t require migrating your data or maintaining separate databases — instead, PuppyGraph creates a virtual graph layer over your existing infrastructure.</p><p>Let’s walk through a practical demonstration of building a security graph with PuppyGraph, showing how you can achieve similar capabilities to Wiz’s security graph while maintaining the simplicity and efficiency of your current data architecture. We have prepared all materials for the demo <a href="https://github.com/puppygraph/puppygraph-getting-started/tree/main/use-case-demos/cloud-security-graph-demo">in this GitHub repo</a>.</p><h3>Deploying PuppyGraph</h3><p>PuppyGraph can be deployed via <a href="https://docs.puppygraph.com/getting-started/">Docker or an AWS AMI</a> through AWS Marketplace. Below, we will focus on what it takes to launch a PuppyGraph instance on Docker.</p><p>Once you have Docker and docker-compose installed, navigate to the directory of the demo in your terminal.Then, simply run the following command to launch the container and other services.</p><pre>[+] Running 6 / 6✔ Network puppy-iceberg Created ✔ Container minio Started ✔ Container mc Started ✔ Container iceberg-rest Started ✔ Container spark-iceberg Started ✔ Container puppygraph Started</pre><p>The Docker Compose file docker-compose.yaml sets up a multi-service environment for working with Apache Iceberg, MinIO, and PuppyGraph:</p><ul><li><strong>spark-iceberg</strong>: a Spark instance configured to work with Apache Iceberg.</li><li><strong>rest</strong>: an Iceberg REST server, which provides a RESTful API for managing Iceberg tables.</li><li><strong>minio</strong>: a Minio server, which is an S3-compatible object storage server.</li><li><strong>mc</strong>: a MinIO client that sets up storage buckets and policies for Iceberg.</li><li><strong>puppygraph</strong>: a graph analytics engine to provide graph database service directly on relational data.</li></ul><p>Now open your browser and go to localhost:8081 (or your instance’s URL) to access the PuppyGraph login screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YGSRPIpMHXw5CpZS.png" /></figure><p>Figure: PuppyGraph UI sign in page</p><p>Log in using the default credentials (username: puppygraph, password: puppygraph123) then you will see the schema page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w4m3YMJ-gEJuDJ1C.png" /></figure><p>Figure: PuppyGraph UI graph schema creation page</p><h3>Data preparation</h3><p>Let’s prepare our data. First convert our csv data into Parquet format via the python script.</p><pre>python3 CsvToParquet.py ./csv_data ./parquet_data</pre><p>Then start the Spark-SQL shell to access Iceberg.</p><pre>docker exec -it spark-iceberg spark-sql</pre><p>The shell prompt will appear as:</p><p>Execute the SQL commands in the demo to create tables and import data.</p><h3>Connecting to the data</h3><p>It’s time to model our graph from the relational data. PuppyGraph makes this easy with a step-by-step modeling tool. You can interactively add vertices and edges to your schema. Alternatively, you can create a schema JSON file and upload it directly. Select the file schema.json in the Upload Graph Schema JSON section and click on Upload. You can also upload the schema file in shell via the command below.</p><pre>curl -XPOST -H &quot;content-type: application/json&quot; --data-binary @./schema.json --user &quot;puppygraph:puppygraph123&quot; localhost: 8081 /schema</pre><p>After submitting the schema, you will see the schema graph.</p><p>‍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6-2UXQEOTOpXMph7.png" /></figure><p>Figure: PuppyGraph UI schema view</p><h3>Querying the graph</h3><p>PuppyGraph supports Gremlin and openCypher. Navigate to the Query panel on the left side. The Gremlin Query tab offers an interactive environment for querying the graph using Gremlin. After each query, remember to clear the graph panel before executing the next query to maintain a clean visualization. You can do this by clicking the Clear button located in the top-right corner of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DA43rD3NYwEU9Dpy.png" /></figure><p>Figure: PuppyGraph UI query view</p><h4>Example queries:</h4><p><strong>‍</strong><br>1. Find network interfaces that are not protected by any security group, along with their associated virtual machine instances (if any), as these interfaces may pose security risks.</p><p>2. Find all public IP addresses exposed to the internet, along with their associated virtual machine instances, security groups, subnets, VPCs, internet gateways, and users, displaying all these entities in the traversal path.</p><p>3. Find roles that have been granted excessive access permissions, along with their associated virtual machine instances.</p><p>4. Find security groups that have ingress rules permitting traffic from any IP address (0.0.0.0/0) to sensitive ports (22 or 3389), and retrieve the associated ingress rules, network interfaces, and virtual machine instances in the traversal path.</p><h3>Cleanup and teardown</h3><p>To stop and remove the containers, networks, and volumes, run:</p><pre>docker compose down --volumes --remove-orphans</pre><h3>Conclusion</h3><p>Wiz’s Security Graph demonstrates the power of graph-based analysis in cloud security, offering deep insights into relationships between assets and potential security risks. While Wiz provides an excellent managed solution, organizations can now build similar capabilities using PuppyGraph without the complexity of traditional graph implementations.</p><p>By operating directly on existing relational data and eliminating the need for ETL processes, PuppyGraph makes graph-based security analytics accessible. This approach allows organizations to leverage the analytical power of security graphs while maintaining their current data infrastructure, providing a practical path to enhanced security visibility and threat detection.</p><p>Interested in trying out PuppyGraph? Download the forever free <a href="https://www.puppygraph.com/dev-download">PuppyGraph Developer Edition</a>, or <a href="https://www.puppygraph.com/book-demo">book a free demo</a> with our graph experts.</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/wiz-security-graph"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cda123bd45b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Best Open Source Graph Databases]]></title>
            <link>https://medium.com/@liuweimo215/7-best-open-source-graph-databases-12627502551c?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/12627502551c</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 11:07:44 GMT</pubDate>
            <atom:updated>2025-08-15T11:07:44.590Z</atom:updated>
            <content:encoded><![CDATA[<p>Graph databases have been at the forefront of tackling the huge influx of highly interconnected data and scaling the global digital infrastructure. If we observe <a href="https://www.technavio.com/report/graph-database-market-analysis">the growth of the graph database market</a>, we expect it to grow by USD 7.40 billion from 2022 to 2027.</p><p>On top of that, like other niches of the software industry, open source brings compelling benefits when it comes to adopting graph databases. In this blog post, we’ll look at the seven leading open-source graph databases available in the market today. We’ll also discuss how open source graph databases work and the key factors we recommend you consider when choosing one. In the end, you’ll have the means to confidently pick the perfect database that can unlock the full potential of your vast enterprise data.</p><h3>What is an open source graph database?</h3><p><a href="https://www.puppygraph.com/blog/graph-database">Graph databases</a> represent and store data using graph structures, consisting of nodes, edges, and properties to model and query relationships. Unlike traditional relational databases that rely on tables and rows, graph databases inherently reflect the interconnected nature of modern data.</p><p>At their core, graph databases consist of three primary elements:</p><ul><li><strong>Nodes</strong>: Represent main data points or entities.</li><li><strong>Edges</strong>: Define relationships connecting these nodes.</li><li><strong>Properties</strong>: Enrich nodes and edges with additional information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V6V8RUICrcsxFb0L.png" /></figure><p>Figure: friend of friend of a person with id “123”</p><p>For example, in a supply chain scenario, nodes could represent manufacturers, suppliers, distribution centers, and retailers. Edges define relationships like “supplies to,” “manufactures,” and “ships to,” while properties store details such as inventory levels, shipping dates, and costs.</p><ul><li><strong>Native graph storage engines</strong> optimized for direct node and edge manipulation.</li><li><strong>Graph layers</strong> built atop existing relational or NoSQL databases, which utilize their mature ecosystems.</li></ul><p>To manage these relationships efficiently, graph databases leverage specialized storage and indexing strategies. Vendors typically adopt one of two approaches:</p><p>Graph databases also use query languages like Cypher and <a href="https://www.puppygraph.com/blog/gremlin-graph">Gremlin</a> to simplify working with relationships. These languages allow developers to focus on patterns rather than procedural steps. For instance, querying “find all users who interacted with at least three products in the same category in the past month” is intuitive and efficient, without requiring in-depth knowledge of the underlying implementation.</p><ul><li><strong>Shortest path algorithms</strong>: Useful for finding the quickest route between two points in a transportation network.</li><li><strong>Centrality algorithms</strong>: Identify influential nodes in a social network or communication system.</li><li><strong>Community detection algorithms</strong>: Uncover hidden clusters or groups within a dataset, such as customer segments in marketing analytics.</li></ul><p>In addition to storage and querying, many graph databases support built-in graph algorithms. These algorithms enable advanced analytics directly on graph data, allowing users to derive deeper insights from their interconnected datasets. For example:</p><p>The inclusion of graph algorithms makes graph databases not just a data storage and querying solution but a comprehensive tool for understanding and analyzing complex networks.</p><h3>Understanding open source graph databases</h3><p>As organizations evaluate graph database solutions, many turn to open-source options for their flexibility and community-driven development. Like many open-source software, these graph databases are distributed under specific licenses that govern their usage, modification, and distribution rights. These licenses primarily fall into two categories: permissive licenses and copyleft licenses, though some projects adopt a dual licensing model to balance open-source principles with commercial interests.</p><h4>Permissive licenses</h4><p>Permissive licenses, such as the MIT License and the Apache License 2.0, are known for their flexibility. They allow users to modify the software and redistribute it, even as part of proprietary projects. For instance, the Apache License 2.0 includes provisions for patent protection, making it popular for projects that aim to balance open collaboration with commercial use. A company can use an open-source graph database governed by the Apache License 2.0, customize it for their use case, and integrate it into a commercial product without the obligation to release their modifications to the public.</p><h4>Copyleft licenses</h4><p>In contrast, copyleft licenses like the GNU General Public License (GPL) require any derivative work to be distributed under the same license. This ensures that any improvements or modifications remain open source, fostering a culture of shared innovation. However, this can be restrictive for companies that want to integrate the database into proprietary solutions. If a graph database uses the GPL, any changes a developer makes to the code must also be released under the GPL when distributed, maintaining the open-source ethos.</p><h4>Dual licensing models</h4><p>Some graph databases adopt a dual licensing model, where the core product is open source, but certain features or enterprise-level support are available only through a commercial license. This approach allows companies to benefit from the open-source community while monetizing advanced functionality. For example, Neo4j uses a dual licensing model, providing its Community Edition under an open-source license and its Enterprise Edition under a commercial license with extra features like advanced security and scalability tools.</p><h4>Benefits of open source graph database</h4><ul><li><strong>Cost-effectiveness</strong>: With no licensing fees, they lower the barrier to entry, making them ideal for startups and budget-conscious enterprises.</li><li><strong>Flexibility and customization</strong>: Users can adapt the database to their specific needs, ensuring it aligns with unique workflows or requirements.</li><li><strong>Community and innovation</strong>: A global community of developers continuously improves open-source graph databases, driving innovation and providing extensive support.</li><li><strong>Transparency and trust</strong>: Open access to the source code ensures that users can audit it for security, compliance, or performance issues.</li></ul><p>Open-source graph databases offer several advantages that make them an attractive choice for organizations:</p><h3>Key factors to consider for open source graph databases</h3><p>To choose the right open source graph database, you must carefully evaluate various factors so the database aligns with your project needs and technical requirements. Let’s discuss some of the most important ones.</p><h3>Graph database engine architectures</h3><ul><li><strong>Native graph storage</strong>: Databases with native graph storage are optimized for graph-specific operations like traversal and querying. They are ideal for use cases requiring high-performance querying, such as machine learning or applications with embedded object-oriented structures.</li><li><strong>Multi-model engines</strong>: Multi-model databases combine graph, document, and key-value features, offering flexibility to handle diverse data and relationships. These are particularly useful in industries like healthcare and finance, where data dynamics are complex. While multi-model engines may initially sacrifice graph traversal performance, modern implementations have significantly improved their graph processing capabilities.</li><li><strong>In-memory models</strong>: In-memory graph databases store data in RAM, providing ultra-fast indexing and querying. They are well-suited for applications requiring time-sensitive analytics, such as fraud detection or stock market analysis. However, scalability can be a challenge due to the reliance on memory capacity.</li><li><strong>Specialized optimizations</strong>: Some graph databases offer features like real-time graph processing enhancements, enabling high throughput in demanding scenarios. These optimizations can significantly boost application performance and developer productivity.</li></ul><p>The architecture of a graph database engine plays a significant role in its performance, scalability, and versatility. Here are the primary architectural models to consider:</p><h3>Optimizing for high performance and scalability</h3><ul><li><strong>Horizontal scaling</strong>: Horizontal scaling through graph partitioning and sharding distributes data across multiple servers while maintaining efficient traversals. This approach improves performance, fault tolerance, and the ability to handle growing datasets and user demands.</li><li><strong>Replication strategies</strong>: Replication ensures high availability and fault tolerance by duplicating data across servers. It protects against node failures and keeps your system operational under heavy loads.</li><li><strong>Query optimization</strong>: Features like lazy evaluation and parallel processing significantly improve response times for complex traversals. Choosing a database with robust query optimization capabilities is crucial for intensive data processing applications.</li><li><strong>Hybrid scaling approaches</strong>: Modern graph databases often combine different scaling strategies, such as mixing horizontal and vertical scaling, to address diverse workloads and ensure optimal performance.</li></ul><p>Performance and scalability are critical for applications dealing with large datasets, high query complexity, or real-time analytics. Here are key considerations:</p><h3>Ensuring data integrity and consistency</h3><p>Maintaining data integrity and consistency is essential for the reliability of graph databases, particularly when dealing with complex, interconnected datasets. Graph databases achieve this through robust transaction handling and consistency models.</p><p>Transactions in graph databases adhere to the ACID principles: atomicity ensures that all changes within a transaction are either fully applied or not at all, preventing partial updates; consistency ensures that each transaction transitions the database to a valid state based on predefined rules; isolation keeps concurrent transactions from interfering with each other; and durability guarantees that once a transaction is committed, its changes are permanent even after a system failure. For example, in a financial application, transactions must debit and credit accounts accurately without leaving the database in an inconsistent state.</p><p>Consistency models also play a critical role. Strong consistency ensures that every read operation reflects the latest data, which is crucial for applications such as financial systems. Eventual consistency, on the other hand, allows replicas of the database to converge over time, making it more suitable for scenarios like social networks where immediate consistency is less critical. Causal consistency preserves the order of related operations, ensuring logical data flow.</p><p>To prevent errors, graph databases often include features like schema enforcement to validate data structures, unique constraints to avoid duplicates, and referential integrity to maintain valid relationships. These mechanisms ensure that the database remains consistent and reliable, even as it scales or handles complex operations.</p><p>By supporting transactions and consistency models, graph databases provide a solid foundation for building accurate and dependable applications across various domains.</p><h3>Query language diversity</h3><ul><li><strong>Cypher:</strong> Known for its highly readable syntax, Cypher is a declarative language that excels at expressing complex graph patterns. Its intuitive structure makes it easier to learn and use, particularly for users familiar with SQL. This is a popular choice for tasks like social network analysis and recommendation engines where relationships are central.</li><li><strong>Gremlin:</strong> A more imperative language, Gremlin offers greater flexibility and control over the traversal process. Its step-by-step approach allows for fine-grained manipulation of graph data, making it well-suited for tasks requiring complex traversals and transformations, such as fraud detection or knowledge graph exploration.</li><li><strong>SPARQL:</strong> Designed specifically for querying RDF data, SPARQL is widely used in semantic web applications and linked data management. Its strength lies in handling ontologies and inferencing, making it ideal for knowledge representation and reasoning tasks.</li></ul><p>The query language acts as the primary interface between the user and the database. It determines how efficiently you can retrieve and analyze data. You have to evaluate whether the query language aligns with your use case and team’s technical skills. Fortunately, open-source graph databases offer a variety of query languages. Each possesses unique advantages and suits different operations. For example:</p><p>Ultimately, the best query language depends on your specific needs and the complexity of your graph data. Consider factors like the types of queries you’ll be performing, the structure of your data, and the expertise of your team when making your selection.”</p><h3>Active community and development</h3><p>A vibrant open source community is crucial for the long-term success and reliability of a graph database. The health of the project can be assessed through regular commits and updates to the codebase, which indicate ongoing maintenance and development. The size and engagement of the developer community on platforms like GitHub serves as a strong indicator of the project’s sustainability. Equally important is the quality of documentation, including community-contributed guides and tutorials that help new users navigate the system effectively. Projects with strong communities typically demonstrate responsive maintenance teams who address bug reports and feature requests promptly, while maintaining active discussion forums, Stack Overflow presence, and community chat channels for user support.</p><h3>Licensing and commercial support</h3><p>Understanding the licensing model is essential when selecting an open source graph database for your project. The type of license (Apache, MIT, GPL, etc.) directly impacts how you can use, modify, and distribute the software. Some projects offer dual licensing models, combining open source versions with commercial options that provide additional features or support. It’s crucial to evaluate whether the project offers commercial support options or enterprise editions that might become necessary as your implementation grows. Professional services and consulting availability can also be vital for complex deployments. Additionally, consider the project’s governance model and how license changes might affect your long-term usage.</p><h3>Extensibility and customization</h3><p>Open source graph databases should offer substantial flexibility for customization to meet specific organizational needs. The ability to access and modify source code allows organizations to tailor the database to their unique requirements. A well-designed plugin architecture enables functionality extensions without modifying core code. Documentation should clearly outline the process for building custom extensions and integrating with existing systems. The most valuable open source solutions provide robust integration capabilities with other tools in your technology stack, allowing for seamless data flow and operation within your existing infrastructure.</p><h3>Deployment options and independence</h3><p>Open source solutions offer significant advantages in deployment flexibility. Organizations can self-host on premises or in any cloud environment, maintaining full control over their data and infrastructure. This independence from vendor lock-in provides the freedom to modify and optimize deployment configurations according to specific performance and security requirements. Organizations can control their upgrade cycles and versions, ensuring system changes align with their operational needs. Modern open source graph databases should support various deployment patterns, including containerization and orchestration, to facilitate scalable and maintainable implementations.</p><h3>Total cost of ownership</h3><p>While open source software is free to use, organizations must consider the complete cost picture when evaluating graph database solutions. This includes assessing the internal development resources required for maintenance and customization, as well as infrastructure costs for self-hosted deployments. Organizations need to account for training and skill development to build internal expertise. Support and consulting services, while optional, may become necessary for complex implementations or performance optimization. Some enterprise features might require additional licensing, which should be factored into the long-term budget planning.</p><h3>Top 7 best open-Source graph databases of 2025</h3><p>In this section, we’ll look at some of the most prominent graph databases to help you narrow down your evaluation process in choosing the best solution for your needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*yFjp84VD3Vs9yV54.png" /></figure><p>‍</p><h3>ArangoDB</h3><p>ArangoDB functions as a multi-model database combining graph, document, and key-value data models with native JSON support through VelocyPack. It features AQL (ArangoDB Query Language) for querying across all data models and provides distributed architecture with clustering support. The database includes native graph capabilities, full-text search, and Kubernetes integration for cloud deployments. Since October 2023, it has operated under the ArangoDB Community License, which includes restrictions on commercial use and a 100GB data limit for single clusters, while an Enterprise Edition offers additional features under a commercial license.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/0*iTWNtUEaG9aZbpAO.png" /></figure><p>‍</p><h3>Neo4j</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/0*NGq-kVBSrdoFc5Gh.png" /></figure><p>Neo4j provides native graph storage and processing optimized for managing nodes and relationships. It employs the Cypher query language for intuitive graph querying and maintains data consistency through ACID-compliant transactions. The database architecture supports both standalone and clustered deployments, offering high-performance native API access and integration with popular data science tools. Neo4j offers a Community Edition under the GPLv3 license, while its feature-rich Enterprise Edition requires a commercial license.</p><h3>Dgraph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/0*pCv-5rK5PjzjMnSY.png" /></figure><p>Dgraph presents itself as a distributed graph database engineered for production environments. It features native GraphQL support, ACID transactions, and horizontal scaling capabilities for managing large datasets. The database includes built-in search and indexing capabilities and supports a JSON-based data model. Currently, Dgraph’s core operates under the Apache 2.0 license, with plans to make all features available under the same license in the upcoming v25 release in early 2025.</p><h3>JanusGraph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/0*bdCnlBan3poK0LpM.png" /></figure><p>JanusGraph excels as a distributed graph database designed for handling massive-scale graphs, supporting hundreds of billions of vertices and edges. It integrates naturally with Apache TinkerPop and the Gremlin query language, while offering flexible storage backend support for systems like Apache Cassandra and HBase. The database maintains ACID transactions even in distributed environments and supports global graph analytics through Apache Spark integration. JanusGraph operates entirely under the Apache 2 license, making it fully open source.</p><h3>Memgraph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/0*qVqD0t0fYZe0NjRA.png" /></figure><p>Memgraph functions as a high-performance in-memory graph database optimized for real-time analytics. It supports ACID-compliant transactions and uses OpenCypher query language, maintaining compatibility with Neo4j. The database includes the MAGE (Memgraph Advanced Graph Extensions) library for graph algorithms and offers native integration with streaming platforms like Kafka. Memgraph comes in multiple editions: a free Community Edition with core features, an Enterprise Edition with additional security and scalability features, and a Cloud Edition available as a fully managed service on AWS.</p><h3>OrientDB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*-nbcVErfc5mZF2wC.png" /></figure><p>OrientDB operates as a multi-model database supporting Document, Graph, Key-Value, and Object models with native graph capabilities. It features an SQL-like query language with graph functionality and offers schema-less, schema-full, or schema-mixed modes. The database provides ACID compliance and uses persistent pointers instead of runtime JOINs for efficient data connections. OrientDB offers both a Community Edition under the Apache 2 license and an Enterprise Edition with additional features like non-stop backup, query profiler, and distributed clustering configuration.</p><h3>NebulaGraph</h3><p>NebulaGraph is a distributed, open-source graph database designed to store and query large-scale, complex graph data with high performance and low latency. Its native graph storage engine supports massive vertex and edge counts while ensuring strong data consistency and horizontal scalability. NebulaGraph offers an openCypher-based query language for intuitive graph traversal and analysis, along with flexible schema options ranging from strict enforcement to a more relaxed approach. The system ensures ACID transactions and is optimized for efficient data access without reliance on runtime JOINs. NebulaGraph provides both a Community Edition under the Apache 2.0 license and an Enterprise Edition that includes advanced security features, role-based access control, and enhanced management tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8qaPrDOFvNkIZQzy.png" /></figure><h3>Bonus: PuppyGraph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RuqZzvlfLJQQmJ5Z.png" /></figure><p>Figure: Relational data sources supported by PuppyGraph</p><p><a href="https://www.puppygraph.com/"><strong>PuppyGraph</strong></a><strong> is the first and only graph query engine that lets you query existing relational data stores as a unified graph without ETL processes — no separate graph database needed.</strong> It seamlessly integrates with data lakes like Apache Iceberg, Apache Hudi, and Delta Lake, as well as databases including MySQL, PostgreSQL, and DuckDB, eliminating the need for a separate graph database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GyedOYIBjMTEQzGc.png" /></figure><p>Figure: Example architecture with PuppyGraph</p><p>PuppyGraph’s zero-ETL architecture enables direct graph querying of data warehouses and lakes, while its advanced architecture handles petabyte-scale datasets through automatic sharding. The engine achieves remarkable performance, executing complex operations like 10-hop neighbor searches in 2.26 seconds using parallel processing and vectorized evaluation.</p><p>Deployment is also straightforward: users simply <a href="https://www.puppygraph.com/download-confirmation">download the free Docker image</a>, connect PuppyGraph to your existing data stores, create graph schemas, and start querying. The system can be deployed via Docker, <a href="https://cta-service-cms2.hubspot.com/web-interactives/public/v1/track/click?encryptedPayload=AVxigLI4Hp%2BZCvNSAipDtFkTr6VYn7gCFTfrWSdyODkpUHdEr94IfDw5hCaqZF%2FfA9ReaqZ59cEotrk%2Fyz9nusjaHUdR3mPzfMz4NZLjKhq3GZpO9LReBmxGK6zSz%2FLLYuujoY5wIqD9MGkGsmHEkWak82KuaFRnwEqHaU9VHBBOd3A%3D&amp;portalId=24330658&amp;webInteractiveContentId=158424686993&amp;webInteractiveId=305867834459&amp;containerType=EMBEDDED&amp;pageUrl=https%3A%2F%2Fwww.puppygraph.com%2Fdownload-confirmation&amp;pageTitle=PuppyGraph+%7C+Download+Confirmation&amp;referrer=&amp;userAgent=Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac+OS+X+10_15_7%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F131.0.0.0+Safari%2F537.36&amp;hutk=048161d993aca0a55aa8c8b7847b675b&amp;hssc=48375865.6.1735601183839&amp;hstc=48375865.048161d993aca0a55aa8c8b7847b675b.1709227938705.1734717772945.1735601183839.302&amp;hsfp=560670869">AWS AMI</a>, <a href="https://console.cloud.google.com/marketplace/product/puppygraph-public/puppygraph-professional">GCP Marketplace</a>, or within a VPC or data center, providing full data control. For query compatibility, PuppyGraph supports both Gremlin and OpenCypher standards.</p><h3>Conclusion</h3><p>Open-source graph databases combine the benefits of open source philosophy and graph databases to bring the value of graphs to more users. These systems allow organizations to leverage the power of graph-based data modeling without being locked into proprietary solutions, while benefiting from community-driven development and improvements. This makes them an ideal starting point for developers to learn graph database concepts and experiment with implementations before potentially scaling up to enterprise solutions or building their own products.</p><p>Interested in trying out PuppyGraph for free? Download the forever free <a href="https://www.puppygraph.com/dev-download">PuppyGraph Developer Edition</a>, or <a href="https://www.puppygraph.com/book-demo">book a demo</a> with our engineering team.</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/open-source-graph-databases"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12627502551c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Wiz Crushed Lacework: A Data Infrastructure Perspective]]></title>
            <link>https://medium.com/@liuweimo215/how-wiz-crushed-lacework-a-data-infrastructure-perspective-00276385cc2a?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/00276385cc2a</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 19:24:58 GMT</pubDate>
            <atom:updated>2025-08-04T19:24:58.863Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JE8KqO5GYR3dzgaQ.png" /></figure><p>Google’s<a href="https://blog.google/inside-google/company-announcements/google-agreement-acquire-wiz/"> acquisition of Wiz for $32 billion</a> was a clear signal to the industry: the cloud security war has a winner. What’s more interesting is how they won. Wiz wasn’t the first mover. Lacework started five years earlier with a solid team, strong product vision, and top-tier VC backing. So what went wrong for Lacework? And what went right for Wiz?</p><p>If you browse social media, you’ll find engineers and CISOs asking the same thing. Threads on X, Reddit, and Hacker News have dozens of posts dissecting the matchup. The answer holds lessons not just for security vendors, but for anyone building modern data-intensive products.</p><p>Obviously, Wiz did many things right from product strategy and GTM to customer support and execution. But there’s one angle I haven’t seen talked about much in the usual analysis. It happens to be my niche: data infrastructure. It might just be their secret weapon, and that’s what prompted me to write this breakdown.</p><p>Take Reddit, for example. Multiple posts are comparing Lacework and Wiz, with engineers sharing firsthand experiences from evaluations and deployments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/0*MMRjLQjw_P44XKtZ.png" /><figcaption>Source: <a href="https://www.reddit.com/r/cybersecurity/comments/1crzc92/wiz_vs_lacework/">Reddit</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*VNxsEe0iABdEh85a.png" /><figcaption>Source: <a href="https://www.reddit.com/r/cybersecurity/comments/1c1s9r2/comment/kz5xqe5/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button">Reddit</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*Or1m-dyJQ4NN8pkS.png" /><figcaption>Source: <a href="https://www.reddit.com/r/cybersecurity/comments/1c1s9r2/comment/l7q1oie/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button">Reddit</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/0*ydt24skqiZDQacqM.png" /><figcaption>Source: <a href="https://www.reddit.com/r/cybersecurity/comments/1c1s9r2/comment/kz7xx7s/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button">Reddit</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*R25BpZsyRpDc4l0N.png" /><figcaption>Source: <a href="https://www.reddit.com/r/cybersecurity/comments/1cxi15l/comment/l553xbg/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button">Reddit</a></figcaption></figure><p>I’m not a security guy. I come from a data infrastructure background. But this story is just as much about data architecture as it is about product strategy.</p><p>Let’s look at what each company built.</p><h3>Lacework: Graph Ideas, SQL Reality</h3><p>Lacework launched in 2015 with the Polygraph® Data Platform. It aimed to detect threats by mapping relationships and behaviors between cloud assets, a classic graph use case. But under the hood, Lacework didn’t use a graph database. They built it on Snowflake.</p><p>Why Snowflake? Probably because Sutter Hill Ventures incubated both companies. And to be fair, Snowflake made sense on paper. It offers strong scalability and relatively low cost. You can store huge volumes of cloud telemetry, and it scales elastically. That’s helpful for cost control and data retention.</p><p>But there’s a catch. Snowflake isn’t built for graph workloads. Writing a 3-hop relationship query in SQL can take 100+ lines of nested joins. Here’s what a basic traversal looks like in SQL:</p><pre>SELECT a.user_id, d.device_id, n.network_id <br>FROM users a <br>JOIN logins b ON a.user_id = b.user_id <br>JOIN devices d ON b.device_id = d.device_id <br>JOIN connections c ON d.device_id = c.device_id <br>JOIN networks n ON c.network_id = n.network_id <br>WHERE n.public = true;</pre><p>Now imagine debugging this at 10 hops, with filters, aggregations, and alert logic. Even the best engineers will slow down. Development becomes brittle and difficult to maintain.</p><h3>Wiz: Native Graph, Feature Velocity</h3><p>Wiz was founded in 2020 by Assaf Rappaport and his former team from Adallom. They chose a different path. From day one, Wiz used Amazon Neptune, a native graph database.</p><p>In a joint blog post with AWS titled <a href="https://aws.amazon.com/blogs/database/the-world-is-a-graph-how-wiz-reimagines-cloud-security-using-a-graph-in-amazon-neptune/">“The World is a Graph”</a>, Wiz CTO Ami Luttwak explained their approach:</p><p>“The world is a graph, not a table. It’s time our tooling reflected this.”</p><p>Wiz modeled everything, users, assets, roles, and flows, as nodes and edges. They queried it with Gremlin. Here’s a real-world example:</p><pre>g.V().hasLabel(&quot;vm&quot;).has(&quot;public&quot;, true)<br>  .out(&quot;connectedTo&quot;).hasLabel(&quot;network&quot;)<br>  .out(&quot;reachableBy&quot;).has(&quot;role&quot;, &quot;admin&quot;)<br>  .path()</pre><p>This kind of logic is expressible in 10 lines with Gremlin. In SQL? It would be a nightmare.</p><p>This architectural choice gave Wiz a massive edge in developer velocity. With Neptune and Gremlin, engineers could express complex security logic in concise, readable queries and ship them quickly. What would take days or weeks in SQL due to brittle joins and long query chains could be prototyped and pushed in hours. This mattered. Security is a fast-moving field, and Wiz’s ability to ship features at startup speed meant it could respond to customer requests, compliance requirements, and threat intelligence faster than Lacework. Even with a smaller team, they consistently outpaced Lacework’s product delivery cadence.</p><p>By 2022, Wiz deepened its commitment to graph infrastructure by continuing to scale on Amazon Neptune. Their bet on native graph tech was not just architectural; it defined their velocity and differentiation.</p><h3>The Graph Bet That Changed Everything</h3><p>Lacework prioritized cost efficiency. By using Snowflake, they could ingest and retain massive volumes of telemetry with elastic scaling and lower marginal cost. They didn’t need to maintain a separate graph database or optimize for graph workloads. The tradeoff was in capability: Snowflake’s tabular design wasn’t built for deep relationship queries. Modeling graph logic in SQL, especially multi-hop joins, was verbose, fragile, and hard to iterate on. This slowed down development and made advanced threat modeling harder to execute.</p><p>Wiz is optimized for speed. By betting on a native graph engine, they gained fast iteration, concise query logic, and a security model grounded in relationships. They could express new detections or traversal-based insights in a few lines of Gremlin, prototype ideas quickly, and ship updates faster.</p><p>In cybersecurity, speed wins. Customers care more about feature velocity and detection quality than marginal compute savings. Wiz took a costly but strategic path: they paid much more for infrastructure but delivered faster innovation and outpaced the field.</p><ul><li>A friend at a Series F cybersecurity startup told me they only store a single day’s worth of graph data, because the graph database cannot scale out.</li><li>Another company splits its graph workload: topology stays in a graph database, but all attributes are offloaded to a warehouse like Snowflake or Databricks.</li></ul><p>Lacework’s architecture helped them scale cheaply, but that same architecture made it difficult to build graph-native security features. Their bet is optimized for storage and cost. Wiz’s bet is optimized for iteration and product value. The outcome was clear.</p><h3>Can You Get the Wiz Speed With Low Cost and Unlimited Scalability of Data Lakes?</h3><p>If you’ve made it this far, you might be wondering: Is it possible to get the benefits of a native graph system, fast iteration, expressive multi-hop queries, without the painful cost and complexity of traditional graph databases?</p><p>Plenty of cybersecurity unicorns have attempted creative workarounds to address the scalability and cost challenges of traditional graph databases:</p><ul><li>No ETL</li><li>No duplicated storage</li><li>Query your Parquet files or iceberg/delta tables with Cypher or Gremlin</li><li>Subsecond response times</li><li>Lower cost than Snowflake</li></ul><p>These are clever tradeoffs. But they’re still compromises.</p><p>What if you didn’t have to choose between fast iteration and low cost?</p><p>(Trigger warning: Shameless plug coming)</p><p>That’s the question we asked ourselves when building PuppyGraph, a graph query engine designed to run directly on your data lake.</p><p>Wiz chose graphs and shipped features fast. Lacework chose SQL and struggled with velocity.</p><p>The best part of the Wiz story isn’t just that they chose graphs, it’s that they embraced the tradeoff. They paid more in infrastructure, but got faster iteration and better product velocity in return.</p><p>Now imagine building at that speed, with a much smaller bill. If you’re building the next Wiz, maybe you don’t need a $32B exit. Perhaps you just need the right graph engine. (Okay fine, a $32B exit would be nice too.)</p><p><em>Originally published at </em><a href="https://www.puppygraph.com/blog/how-wiz-crushed-lacework-a-data-infrastructure-perspective"><em>https://www.puppygraph.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00276385cc2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-Time Threat Detection With MongoDB & PuppyGraph]]></title>
            <link>https://medium.com/@liuweimo215/real-time-threat-detection-with-mongodb-puppygraph-bec852180b1f?source=rss-c54902e5a44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bec852180b1f</guid>
            <dc:creator><![CDATA[Weimo Liu]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 03:37:46 GMT</pubDate>
            <atom:updated>2025-07-11T03:37:46.173Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U_jAvkdMH4tN5Juk.png" /></figure><p>Security operations teams face an increasingly complex environment. Cloud-native applications, identity sprawl, and continuous infrastructure changes generate a flood of logs and events. From API calls in AWS to lateral movement between virtual machines, the volume of telemetry is enormous-and it’s growing.</p><p>The challenge isn’t just scale. Its structure. Traditional security tooling often looks at events in isolation, relying on static rules or dashboards to highlight anomalies. But real attacks unfold as chains of related actions: A user assumes a role, launches a resource, accesses data, and then pivots again. These relationships are hard to capture with flat queries or disconnected logs.</p><p>That’s where graph analytics comes in. By modeling your data as a network of users, sessions, identities, and events, you can trace how threats emerge and evolve. And with PuppyGraph, you don’t need a separate graph database or batch pipelines to get there.</p><p>In this post, we’ll show how to combine MongoDB and PuppyGraph to analyze AWS CloudTrail data as a graph-without moving or duplicating data. You’ll see how to uncover privilege escalation chains, map user behavior across sessions, and detect suspicious access patterns in real time.</p><h3>Why MongoDB for cybersecurity data</h3><p>MongoDB is a popular choice for managing security telemetry. Its document-based model is ideal for ingesting unstructured and semi-structured logs like those generated by AWS CloudTrail, GuardDuty, or Kubernetes audit logs. Events are stored as flexible JSON documents, which evolve naturally as logging formats change.</p><p>This flexibility matters in security, where schemas can shift as providers update APIs or teams add new context to events. MongoDB handles these changes without breaking pipelines or requiring schema migrations. It also supports high-throughput ingestion and horizontal scaling, making it well-suited for operational telemetry.</p><p>Many security products and SIEM backends already support MongoDB as a destination for real-time event streams. That makes it a natural foundation for graph-based security analytics: The data is already there-rich, semi-structured, and continuously updated.</p><h3>Why graph analytics for threat detection</h3><p>Modern security incidents rarely unfold as isolated events. Attackers don’t just trip a single rule-they navigate through systems, identities, and resources, often blending in with legitimate activity. Understanding these behaviors means connecting the dots across multiple entities and actions. That’s precisely what graph analytics excels at. By modeling users, sessions, events, and assets as interconnected nodes and edges, analysts can trace how activity flows through a system. This structure makes it easy to ask questions that involve multiple hops or indirect relationships-something traditional queries often struggle to express.</p><p>For example, imagine you’re investigating activity tied to a specific AWS account. You might start by counting how many sessions are associated with that account. Then, you might break those sessions down by whether they were authenticated using MFA. If some weren’t, the next question becomes: What resources were accessed during those unauthenticated sessions?</p><p>This kind of multi-step investigation is where graph queries shine. Instead of scanning raw logs or filtering one table at a time, you can traverse the entire path from account to identity to session to event to resource, all in a single query. You can also group results by attributes like resource type to identify which services were most affected.</p><p>And when needed, you can go beyond metrics and pivot to visualization, mapping out full access paths to see how a specific user or session interacted with sensitive infrastructure. This helps surface lateral movement, track privilege escalation, and uncover patterns that static alerts might miss.</p><p>Graph analytics doesn’t replace your existing detection rules; it complements them by revealing the structure behind security activity. It turns complex event relationships into something you can query directly, explore interactively, and act on with confidence.</p><h3>Query MongoDB data as a graph without ETL</h3><p>MongoDB is a popular choice for storing security event data, especially when working with logs that don’t always follow a fixed structure. Services like AWS CloudTrail produce large volumes of JSON-based records with fields that can differ across events. MongoDB’s flexible schema makes it easy to ingest and query that data as it evolves.</p><p><a href="https://hubs.ly/Q03q_lFd0">PuppyGraph</a> builds on this foundation by introducing graph analytics-without requiring any data movement. Through the <a href="https://www.mongodb.com/products/platform/atlas-sql-interface">MongoDB Atlas SQL Interface</a>, PuppyGraph can connect directly to your collections and treat them as relational tables. From there, you define a graph model by mapping key fields into nodes and relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*7hGzHwHztJr5iXHtLPlYQA.png" /><figcaption><strong>Figure 1.</strong> Architecture of the integration of MongoDB and PuppyGraph.</figcaption></figure><p>This makes it possible to explore questions that involve multiple entities and steps, such as tracing how a session relates to an identity or which resources were accessed without MFA. The graph itself is virtual. There’s no ETL process or data duplication. Queries run in real time against the data already stored in MongoDB.</p><p>While PuppyGraph works with tabular structures exposed through the SQL interface, many security logs already follow a relatively flat pattern: consistent fields like account IDs, event names, timestamps, and resource types. That makes it straightforward to build graphs that reflect how accounts, sessions, events, and resources are linked. By layering graph capabilities on top of MongoDB, teams can ask more connected questions of their security data, without changing their storage strategy or duplicating infrastructure.</p><h3>Investigating CloudTrail activity using graph queries</h3><p>To demonstrate how graph analytics can enhance security investigations, we’ll explore a real-world dataset of AWS CloudTrail logs. This dataset originates from <a href="https://summitroute.com/blog/2020/10/09/public_dataset_of_cloudtrail_logs_from_flaws_cloud/">flaws.cloud</a>, a security training environment developed by Scott Piper.</p><p>The dataset comprises anonymized CloudTrail logs collected over 3.5 years, capturing a wide range of simulated attack scenarios within a controlled AWS environment. It includes over 1.9 million events, featuring interactions from thousands of unique IP addresses and user agents. The logs encompass various AWS API calls, providing a comprehensive view of potential security events and misconfigurations.</p><p>For our demonstration, we imported a subset of approximately 100,000 events into MongoDB Atlas. By importing this dataset into MongoDB Atlas and applying PuppyGraph’s graph analytics capabilities, we can model and analyze complex relationships between accounts, identities, sessions, events, and resources.</p><h3>Demo</h3><p>Let’s walk through the demo step by step! We have provided all the materials for this demo on <a href="https://github.com/puppygraph/puppygraph-getting-started/tree/main/use-case-demos/cloudtrail-mongodb-demo">GitHub</a>. Please download the materials or clone the repository directly.</p><p>If you’re new to integrating MongoDB Atlas with PuppyGraph, we recommend starting with the <a href="https://hubs.ly/Q03q_lRV0">MongoDB Atlas + PuppyGraph Quickstart Demo</a> to get familiar with the setup and core concepts.</p><h4>Prerequisites</h4><ul><li>A MongoDB Atlas account (free tier is sufficient)</li><li>Docker</li><li>Python 3</li></ul><h4>Set up MongoDB Atlas</h4><p>Follow the <a href="https://www.mongodb.com/docs/atlas/getting-started/">MongoDB Atlas Getting Started guide</a> to:</p><ol><li>Create a new cluster (free tier is fine).</li><li>Add a database user.</li><li>Configure IP access.</li><li>Note your connection string for the MongoDB Python driver (you’ll need it shortly).</li></ol><h4>Download and import CloudTrail logs</h4><p>Run the following commands to fetch and prepare the dataset:</p><pre>wget https://summitroute.com/downloads/flaws_cloudtrail_logs.tar<br>mkdir -p ./raw_data<br>tar -xvf flaws_cloudtrail_logs.tar --strip-components=1 -C ./raw_data<br>gunzip ./raw_data/&amp;ast;.json.gz</pre><p>Create a virtual environment and install dependencies:</p><pre># On some Linux distributions, install `python3-venv` first.<br>sudo apt-get update&amp;NewLine;sudo apt-get install python3-venv<br># Create a virtual environment, activate it, and install the necessary packages<br>python -m venv venv<br>source venv/bin/activate<br>pip install ijson faker pandas pymongo</pre><p>Import the first chunk of CloudTrail data (replace the connection string with your Atlas URI):</p><pre>export MONGODB_CONNECTION_STRING=&quot;your_mongodb_connection_string&quot;<br>python import_data.py raw_data/flaws_cloudtrail00.json --database cloudtrail</pre><p>This creates a new cloudtrail database and loads the first chunk of data containing 100,000 structured events.</p><h4>Enable Atlas SQL interface and get JDBC URI</h4><p>To enable graph access:</p><ol><li>Create an Atlas SQL Federated Database instance.</li><li>Ensure the schema is available (generate from sample, if needed).</li><li>Copy the JDBC URI from the Atlas SQL interface.</li></ol><p>See PuppyGraph’s guide for setting up MongoDB Atlas SQL.</p><h4>Start PuppyGraph and upload the graph schema</h4><p>Start the PuppyGraph container:</p><pre>docker run -p 8081:8081 -p 8182:8182 -p 7687:7687 \<br>  -e PUPPYGRAPH_PASSWORD=puppygraph123 \<br>  -d --name puppy --rm --pull=always puppygraph/puppygraph:stable</pre><p>Log in to the web UI at <a href="http://localhost:8081/">http://localhost:8081</a> with:</p><ul><li>Username: puppygraph.</li><li>Password: puppygraph123.</li></ul><p>Upload the schema:</p><ol><li>Open schema.json.</li><li>Fill in your JDBC URI, username, and password.</li><li>Upload via the <strong>Upload Graph Schema JSON</strong> section or run:</li></ol><pre>curl -XPOST -H &quot;content-type: application/json&quot; \<br>  --data-binary @./schema.json \<br>  --user &quot;puppygraph:puppygraph123&quot; localhost:8081/schema</pre><p>Wait for the schema to upload and initialize (approximately five minutes).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*0g8rK7QHpnOzeuIoinlHaA.png" /><figcaption><strong>Figure 2.</strong> A graph visualization of the schema, which models the graph from relational data.</figcaption></figure><h4>Run graph queries to investigate security activity</h4><p>Once the graph is live, open the <strong>Query</strong> panel in PuppyGraph’s UI.</p><p>Let’s say we want to investigate the activity of a specific account. First, we count the number of sessions associated with the account.</p><p>Cypher:</p><pre>MATCH (a:Account)-[:HasIdentity]-&gt;(i:Identity)<br> -[:HasSession]-&gt;(s:Session)<br>WHERE id(a) = &quot;Account[811596193553]&quot;<br>RETURN count(s)</pre><p>Gremlin:</p><pre>g.V(&quot;Account[811596193553]&quot;)<br> .out(&quot;HasIdentity&quot;).out(&quot;HasSession&quot;).count()</pre><p>Then, we want to see how many of these sessions are MFA-authenticated or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*RI9BqXMFaa7Ep-8eBMVBmw.png" /><figcaption><strong>Figure 3. </strong>Graph query in the PuppyGraph UI.</figcaption></figure><p>Cypher:</p><pre>MATCH (a:Account)-[:HasIdentity]-&gt;(i:Identity)<br> -[:HasSession]-&gt;(s:Session)&amp;NewLine;WHERE id(a) = &quot;Account[811596193553]&quot;<br>RETURN s.mfa_authenticated AS mfaStatus, count(s) AS count</pre><p>Gremlin:</p><pre>g.V(&quot;Account[811596193553]&quot;)<br> .out(&quot;HasIdentity&quot;).out(&quot;HasSession&quot;)<br> .groupCount().by(&quot;mfa_authenticated&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*viqsnWBwLVA5Pasqa56kug.png" /><figcaption><strong>Figure 4. </strong>Graph query results in the PuppyGraph UI.</figcaption></figure><p>Next, we investigate those sessions that are not MFA authenticated and see what resources they accessed.</p><p>Cypher:</p><pre>MATCH (a:Account)-[:HasIdentity]-&gt;<br>  (i:Identity)-[:HasSession]-&gt;<br>  (s:Session {mfa_authenticated: false})<br>  -[:RecordsEvent]-&gt;(e:Event)<br>  -[:OperatesOn]-&gt;(r:Resource)<br>WHERE id(a) = &quot;Account[811596193553]&quot;<br>RETURN r.resource_type AS resourceType, count(r) AS count</pre><p>Gremlin:</p><pre>g.V(&quot;Account[811596193553]&quot;).out(&quot;HasIdentity&quot;)<br>  .out(&quot;HasSession&quot;)<br>  .has(&quot;mfa_authenticated&quot;, false)<br>  .out(&#39;RecordsEvent&#39;).out(&#39;OperatesOn&#39;)<br>  .groupCount().by(&quot;resource_type&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*Sj612m_BQiILuWFpV5zLmQ.png" /><figcaption><strong>Figure 5.</strong> PuppyGraph UI showing results that are not MFA authenticated.</figcaption></figure><p>We show those access paths in a graph.</p><p>Cypher:</p><pre>MATCH path = (a:Account)-[:HasIdentity]-&gt;<br>  (i:Identity)-[:HasSession]-&gt;<br>  (s:Session {mfa_authenticated: false})<br>  -[:RecordsEvent]-&gt;(e:Event)<br>  -[:OperatesOn]-&gt;(r:Resource)<br>WHERE id(a) = &quot;Account[811596193553]&quot;<br>RETURN path</pre><p>Gremlin:</p><pre>g.V(&quot;Account[811596193553]&quot;).out(&quot;HasIdentity&quot;).out(&quot;HasSession&quot;).has(&quot;mfa_authenticated&quot;, false)<br>  .out(&#39;RecordsEvent&#39;).out(&#39;OperatesOn&#39;)<br>  .path()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*1U7uCERCRjo68_JqmmHXzA.png" /><figcaption><strong>Figure 6.</strong> Graph visualization in PuppyGraph UI.</figcaption></figure><h4>Tear down the environment</h4><p>When you’re done:</p><pre>docker stop puppy</pre><p>Your MongoDB data will persist in Atlas, so you can revisit or expand the graph model at any time.</p><h3>Conclusion</h3><p>Security data is rich with relationships, between users, sessions, resources, and actions. Modeling these connections explicitly makes it easier to understand what’s happening in your environment, especially when investigating incidents or searching for hidden risks.</p><p>By combining MongoDB Atlas and PuppyGraph, teams can analyze those relationships in real time without moving data or maintaining a separate <a href="https://www.puppygraph.com/blog/graph-database?utm_campaign=12151601-MongoDB%20partner%20blog%20campaign&amp;utm_source=https%3A%2F%2Fwww.mongodb.com%2F&amp;utm_medium=MongoDB%20blog">graph database</a>. MongoDB provides the flexibility and scalability to store complex, evolving security logs like AWS CloudTrail, while PuppyGraph adds a native graph layer for exploring that data as connected paths and patterns.</p><p>In this post, we walked through how to import real-world audit logs, define a graph schema, and investigate access activity using graph queries. With just a few steps, you can transform a log collection into an interactive graph that reveals how activity flows across your cloud infrastructure.</p><p><strong>If you’re working with security data and want to explore graph analytics on </strong><a href="https://www.mongodb.com/cloud/atlas/register"><strong>MongoDB Atlas</strong></a><strong>, try </strong><a href="https://hubs.ly/Q03jpZGd0"><strong>PuppyGraph’s free Developer Edition</strong></a><strong>. It lets you query connected data, such as users, sessions, events, and resources, all without ETL or infrastructure changes.</strong></p><p><em>Originally published at </em><a href="https://www.mongodb.com/company/blog/technical/real-time-threat-detection-mongodb-puppygraph"><em>https://www.mongodb.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bec852180b1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>