Graph Analytics for Fraud Detection
Graph Analytics, Graph Databases, and Fraud Detection
Graphs as a model for connected data
A graph represents information through vertices (also called nodes) and edges (also called relationships). Vertices represent entities such as people, accounts, locations, devices, or transactions. Edges represent how those entities are connected, such as “owns,” “works with,” “sent money to,” or “is located at.”
This model reflects how people often reason about complex situations: they connect pieces of evidence rather than considering each fact in isolation. In fraud investigation, for example, a person may be linked to an account, which is linked to a device, which is linked to several transactions and other accounts. The connections may reveal a pattern that would be hard to see by examining individual records alone.
A graph can represent both:
Direct relationships: two entities are connected by one edge.
Indirect relationships: entities are connected through a chain of intermediate entities.
The number of edges in a path between two entities is sometimes called the path’s number of hops. A graph query can explore relationships one hop away or follow longer paths through the network.
In interconnected-data problems, the relationships can be as informative as the entities and facts themselves.
Why graph databases are useful
Organizations increasingly need to analyze large volumes of data drawn from different systems. Many important questions are not simply about the values in individual records; they depend on how records are connected. These are often called graph-shaped problems.
Examples include:
Determining whether several accounts, devices, and transactions are part of a fraud network.
Recommending a product based on relationships among customers, purchases, and products.
Finding weaknesses that could disrupt a supply chain.
Understanding a customer’s interactions across systems.
Tracing dependencies in a power grid or transportation network.
Relational databases and graphs
A relational database organizes information into tables of rows and columns. Relationships between tables are typically represented through keys, then reconstructed when needed by joining tables.
This approach is effective for many tasks, but analyzing a long chain of relationships can require multiple joins. As the number of joins and the complexity of the query grow, the computation can become more demanding. Adding new kinds of relationships may also require changes to the relational schema.
A graph database stores entities and their relationships in a graph-oriented form. Related entities are connected directly, making it natural to traverse a network and ask questions about paths, neighborhoods, and communities. Graph databases can therefore be especially useful when an application repeatedly needs to follow relationships across many entities.
A graph does not make relational databases unnecessary. Each model suits different needs, and organizations often use them together.
A simple relationship example
Suppose a table shows that two people do not share a home address, device, or bank. A table-based view may not immediately reveal a connection between them. A graph can expose an indirect chain: one person is related to someone who owns a particular item, and that item is also connected to another person; alternatively, two people may be linked through a shared colleague or account.
The key analytical shift is from asking only “What facts are recorded about each entity?” to asking “How are these entities connected, and what does the connection pattern mean?”
Graphs and artificial intelligence
Graph data can enhance machine learning because relationships provide additional information about entities. Training a model only on the properties of individual records can omit useful information contained in how those records are connected.
Richer data for models
A graph can combine data from otherwise separate systems and represent connections as features or evidence. A model can then use both:
Entity attributes, such as an account’s age or a transaction’s amount.
Relationship information, such as the account’s connections to devices, people, locations, or other accounts.
This broader view can help models identify signals that are not apparent in isolated records.
Deeper questions and performance
Graph structure makes it natural to ask questions about indirect and non-obvious relationships. Graph algorithms can search neighborhoods, paths, and groups of connected entities. In some systems, graph-oriented storage and query execution can make repeated relationship traversals more efficient than reconstructing those relationships through many joins.
Performance depends on the database, data, and query. Graph technology is not automatically faster for every kind of analysis.
Explainability
A model’s result can sometimes be explained by tracing the relevant relationships in the graph. For example, an investigator may be able to examine the chain of accounts, devices, or transactions that contributed to a risk assessment.
This can make a result more interpretable, but a visible chain of relationships does not by itself prove that a conclusion is correct. The quality of the underlying data, the model, and the reasoning still matters.
Common graph algorithm families
Graph algorithms analyze structures and patterns in networks. The following families support a range of analytical tasks.
Centrality
Centrality measures how important or prominent a vertex is within a network, according to a particular definition. It can help identify influential people in a social network, important accounts in a transaction network, or highly connected entities that warrant closer examination.
Different centrality measures capture different kinds of importance, such as having many direct connections or lying on paths between other entities.
Classification
Classification assigns vertices or other graph elements to categories according to rules or learned patterns. For example, entities might be classified by risk level or operational role.
In scheduling and manufacturing contexts, related graph problems can also involve identifying which tasks can be performed together without conflicts. That is a specialized optimization use case rather than the general definition of classification.
Community detection
Community detection finds groups of vertices that are more densely connected to one another than to the rest of the graph. The Louvain method is one commonly used approach for detecting communities.
In fraud analysis, a dense group of accounts, people, devices, or transactions may indicate coordinated activity. A community is a structural pattern, however, not proof of wrongdoing.
Graph embeddings
A graph embedding converts graph structure into a fixed-size numerical representation, often a vector, for each vertex or other graph element. These vectors can then be used as features in machine-learning models.
Embeddings help make structural information usable by algorithms that expect numerical input. Their quality depends on how the embedding is generated and whether it preserves the structural signals needed for the task.
Path algorithms
Path algorithms identify routes through a graph. A common task is finding a shortest path between two vertices.
Applications include route planning, tracing chains of money transfers, and identifying how two entities are connected. In fraud investigations, the path can help show how funds or relationships pass through intermediate accounts.
Similarity
Similarity algorithms compare pairs of entities or items to determine how alike they are under a chosen measure. They can support recommendations, identify customers with similar behavior, or find related products.
The result depends on which attributes, connections, and similarity measure the analysis uses.
Topological link prediction
Link prediction estimates whether a relationship may exist, or may form, between two entities that are not currently connected in the recorded graph. It can help identify possible associations that are not obvious from existing data.
A predicted link is a hypothesis requiring suitable validation, not evidence that a relationship definitely exists.
Frequent-pattern mining
Frequent-pattern mining identifies structures or sequences that recur in a graph. Repeated patterns can be useful for detecting suspicious behavior or anticipating customer actions.
For example, a sequence of events that often precedes a customer abandoning a purchase might support an intervention. Such patterns are predictive signals; they do not guarantee that an individual customer will behave the same way.
Applications of graph analytics
Graph analysis can support many types of work, particularly where entities interact or depend on one another.
Entity resolution: determining when records in different systems refer to the same real-world entity.
Customer journeys and customer 360: combining customer interactions, accounts, products, and other records to understand relationships across an organization.
Recommendation engines: using connections among customers, products, and purchases to suggest relevant items.
Supply-chain analysis: tracing suppliers, manufacturing operations, demand, and dependencies across a value stream.
Fraud and anti-money-laundering analysis: examining networks of accounts, people, devices, and transactions.
Cybersecurity: identifying suspicious connections and patterns across users, devices, and systems.
Data fabric and machine learning: connecting data across systems and supplying relational features to analytical models.
Graph-based recommendations are often associated with suggestions such as “people who bought this also bought that.” The underlying analysis may use relationships among customers and products, but recommendation systems can combine graph methods with other approaches.
Fraud detection as a graph problem
Fraud detection is well suited to graph analysis because suspicious activity may be distributed across many entities and relationships. A transaction may appear ordinary when considered alone but become suspicious when viewed alongside an account’s history, its connected devices, and the activity of nearby accounts.
Comparing normal and suspicious patterns
Historical transaction data can establish patterns of ordinary behavior, such as typical transaction frequency, amounts, locations, and counterparties. A system can compare new behavior with those patterns and look for meaningful deviations.
The same general analytical techniques can support positive business goals, such as recommending a product, and risk-focused goals, such as identifying a potentially fraudulent account. The distinction lies in the target outcome and the interpretation of the behavior, not necessarily in the basic mathematical tools.
The presentation claimed that graph-supported approaches could improve fraud accuracy substantially, including a quoted estimate of roughly 60–80% in a particular context. Such a figure is not a universal guarantee: actual performance depends on the data, problem definition, implementation, and evaluation method.
Connecting graph analysis with existing systems
Graph analysis can complement existing machine-learning and data systems rather than requiring every system to be replaced. An organization might combine:
A machine-learning model built using tools such as Python notebooks.
Existing relational or NoSQL databases.
Rule-based logic, such as Boolean conditions.
Graph storage and algorithms for exploring connections.
This combined approach can use existing systems for their established strengths while applying graph analysis to relationship-heavy questions.
Modeling fraud data
A fraud graph might include vertices representing:
Customers or employees.
Accounts.
Phone numbers and devices.
Addresses or geographic locations.
Payments and other transactions.
Cases or other investigative records.
Edges represent relationships such as an account being associated with a customer, a phone number being used by an account, or a payment moving between accounts. Both vertices and edges may have attributes. For example, a transaction edge could carry a date and amount, while an account vertex could carry an account status.
Where an attribute belongs depends on its meaning and how it will be queried. A phone number shared by two people might be modeled as a vertex connected to both people, or recorded differently if the analytical need is different. Model design should avoid unnecessarily duplicating the same information while preserving the relationships and attributes that queries require.
Why long relationship chains matter
Fraudsters may attempt to make individual actions look ordinary. A suspicious pattern may become visible only after tracing several connections: for example, a transaction can pass through multiple accounts before reaching its destination.
Graph queries can traverse these paths and combine evidence across multiple hops. A risk assessment might consider whether an account is connected to a known suspicious entity, how close that connection is, and whether other independent indicators support concern.
An investigative workflow
A graph-supported fraud workflow can proceed as follows:
Combine relevant data. Bring together records such as transactions, account details, device information, locations, and investigative lists.
Define the relationships. Represent how people, accounts, devices, and transactions connect.
Set detection criteria. Use rules, graph algorithms, machine-learning results, or a combination. Criteria might include a blacklist match, a suspicious community, unusual transaction loops, or a path to a known risky entity.
Run the analysis. Identify entities and connections that meet the criteria.
Inspect the results. Explore the surrounding network and the evidence behind an alert.
Tune the system. Review findings and adjust rules or models when results are inaccurate or incomplete.
Involve human investigators. Use automated outputs to focus attention, while allowing people to assess the context and decide what action is justified.
An illustrative investigation might flag a blacklisted person who is also connected to employees, customers, and repeated transactions. Further exploration could reveal a group of related accounts, family connections, or fabricated loan activity. The graph helps expose and visualize the network, but investigators still need to verify what the relationships mean.
Graph data models and querying
A graph data model describes the entity types, relationship types, and attributes in a graph. A logical model explains the meaning of the data; in some graph systems, a similar model also informs how the data is physically stored and queried.
Graph data can be explored through queries that traverse relationships. A technical user may define the model and write the queries, while a business user may use an interface or application built on top of them. Some systems can expose a query through an API endpoint so that other applications can request results.
Graph visualizations can help users inspect connected records, but they are only one way to present results. Dashboards and business-intelligence tools may also be used alongside graph views.
Graph database types and choosing a technology
“Graph database” refers to more than one data model. Choosing a graph technology requires matching the model and capabilities to the problem.
Property graphs
A property graph represents entities and relationships as vertices and edges, with attributes stored on either. This model is suited to highly connected data and is commonly used for traversals, network analytics, risk analysis, recommendations, and behavior-pattern detection.
Triple stores and ontology-oriented graphs
A triple store represents statements in a subject–predicate–object form. Triple stores are often used for ontologies, hierarchies, semantic data, and document- or knowledge-management tasks.
Property graphs and triple stores are designed around different needs. A store optimized for ontology or document-oriented queries may not be the best choice for large-scale traversal and network analytics, and vice versa. The model should be selected according to the work the system must perform.
A knowledge graph is a graph-based representation of entities and their relationships, often organized to capture meaning and support reasoning. Knowledge graphs can use different underlying representations, including property-graph or ontology-oriented approaches. Thus, “knowledge graph” describes the purpose or semantic role of the graph, not necessarily one single storage design.
Open-source and enterprise systems
Open-source graph tools can be useful for learning, experimentation, and some production tasks. They may provide flexibility and community support. Depending on the tool and deployment, however, users may need to assemble or manage more of the surrounding infrastructure themselves, including scaling, cluster operations, load balancing, and performance tuning.
Enterprise-oriented platforms may provide more integrated operational tools, management features, and user interfaces. These can reduce implementation work but may involve licensing costs and vendor-specific choices.
A suitable selection depends on:
The size and shape of the data.
Required query and algorithm performance.
Operational and scaling needs.
The skills of the team.
The system’s purpose, including whether it needs graph traversals, ontology management, or both.
The cost and support model.
Data quality, scale, and integration
Precomputed relationships and performance
Some graph systems store or organize connections so that traversals do not need to reconstruct every relationship through repeated joins. This can make graph queries efficient, particularly when applications repeatedly analyze connected data. The exact performance depends on the system’s storage model, hardware, query, and workload; it should be measured rather than assumed.
Avoiding duplicate records
Graph data loading still requires sound data-management practices. Before loading information, teams need to decide:
Which real-world entities should correspond to distinct vertices.
Which records represent the same entity and should be reconciled.
Whether a fact belongs as an entity attribute or as a relationship attribute.
How identity and uniqueness will be maintained during updates.
For example, if a phone number connects two accounts, it may be represented as its own vertex linked to both accounts. In other cases, a phone number may be stored as an attribute. The right choice depends on whether the phone number itself needs to be queried as a shared entity.
Combining graph and non-graph systems
Many organizations retain relational, NoSQL, time-series, and other databases because each supports different requirements. This multi-model approach is sometimes called polyglot persistence: different data stores are used together rather than forcing every workload into one database.
Graph systems can connect and analyze records from existing systems without requiring those systems to be discarded. Integrations may expose graph results to dashboards, business applications, customer-management systems, or other services.
Climate, infrastructure, and fault analysis
Infrastructure networks such as electrical grids, transportation systems, and supply chains naturally form graphs. Their components are connected, and failures can propagate through those connections.
In an electrical grid, graph analysis can help trace which lines, substations, or other components may be affected by a fault. Weather and sensor data can be linked to network components to investigate questions such as:
Which grid connections are most vulnerable to a particular weather event?
What conditions preceded a previous outage?
Where should repair vehicles or spare parts be positioned?
Which route or asset can be adjusted to reduce disruption?
Similar ideas apply to airlines and trucking. Weather, vehicle locations, routes, and infrastructure can be connected to support rerouting and operational planning. Graph analysis can contribute to fault detection, forecasting, and root-cause investigation by combining network structure with historical and real-time data.
Ethics and responsible use
Risk models can reflect bias, drift, or errors in their data and assumptions. Graph models are not exempt. A person’s position in a network can influence a risk score, so organizations must understand what relationships are being used and how they affect decisions.
Responsible fraud analysis should:
Use relevant, verifiable evidence rather than treating a connection as guilt.
Distinguish probabilistic signals from confirmed facts.
Monitor models for bias, errors, and changes in data over time.
Make the reasoning behind alerts inspectable where possible.
Keep human investigators involved in consequential decisions.
Correct the system when investigators determine that an alert was mistaken or unhelpful.
Multiple independent signals may strengthen a reason to investigate, but a graph connection alone does not establish that someone committed fraud. A model should support careful review, not replace it.
Developing graph skills
Graph knowledge can be useful for students and professionals working in data science, analytics, software, or machine learning. Prior graph-database experience is not always essential; foundational understanding of graph theory and connected-data problems can provide a starting point. Practical experimentation with graph models, queries, and algorithms can help develop applied skills.
The most transferable capability is recognizing when a problem depends on relationships among entities, then choosing a graph model and analytical method that appropriately represent those relationships.

Ask anything
We've read this whole study set, so questions about it get the best answers.