Skip to main content
XenonStack

Data Analytics

XenonStack Use Case Visual Link Analysis with Graph Databases

| Published | Updated

Visual Link Analysis with Graph Databases
6:43
Visual link analysis: transaction records, vertices and edges, graph visualisation, fraud and anomaly insight

Key takeaway

  • How visual link analysis and pattern analytics use graph databases to map transactions, spot fraud and anomalies, and drive recommendations, step by step.
. #}

Visual link analysis is a data-analysis technique that draws the relationships between people, accounts or transactions as a graph so that patterns and anomalies become easy to see. A graph database stores those relationships directly, which makes questions about who is connected to whom quick to ask.

This page is for data, risk and fraud teams. It covers the transaction problem, a step-by-step graph workflow, how pattern analysis differs from link analysis, how a graph recommendation engine works, where AI agents fit and what to check before you start.

What is visual link analysis?

The Link analysis article on Wikipedia describes link analysis as a technique used to evaluate relationships between nodes. Nodes can be organisations, people or transactions, and links are the relationships among them. It serves three purposes: matching known patterns, finding anomalies where patterns are violated, and discovering new patterns. It is used in areas such as fraud and criminal investigation, and in computer security.

Two-column diagram. Build the graph: CSV transactions, vertices, edges, GraphML file. Read the graph: Gephi, layout, anomalies, investigator.

A pattern is a set of common characteristics that form a sequence occurring at regular intervals. Pattern analysis interprets that pattern to make predictions from data.

What problem does it solve?

The task is to see the relationship between the user who made a payment and the user who received it. Each transaction record holds a type, an amount, an origin, a destination and information about the user. In a table, these rows hide the shape of the network. As a graph, the origin and destination become nodes, and the payment becomes the link between them.

How does the graph workflow run?

  1. Load. A graph tool reads a CSV file of transaction data and creates the vertices and edges. The Apache TinkerPop project is a graph computing framework used by many graph databases, and its Gremlin language is built for graph traversal.
  2. Relate. Each edge links an origin vertex to a destination vertex, so a payment between two users is stored as a relationship.
  3. Export. The relationships are written as XML to a GraphML file.
  4. Visualise. The file is opened in Gephi, which the project describes as free, open-source software for network visualisation and analysis with layout algorithms that arrange the structure of the network.
  5. Inspect. Analysts look for clusters, hubs and unusual paths, and follow them back to the underlying records.

The same approach applies to fraud detection, link analysis in insurance and anomaly detection in log analytics, because each of them is a question about connections.

How does pattern analysis differ from link analysis?

QuestionPattern analysisLink analysis
FocusThe shape and sequence of a recurring patternRelationships and connections between nodes
Typical questionWhat will happen next, given this pattern?Who is connected to whom, and how closely?
OutputA prediction or description of the patternA graph of nodes and links with anomalies highlighted
Data shapeSequences, events and attributesEntities and the relationships between them
Works best withHistory that repeats at regular intervalsNetworks of accounts, people or devices

Used together, pattern analysis tells you what normal looks like and link analysis shows who sits outside it.

How does a graph recommendation engine work?

Graph databases analyse and aggregate connected data, which suits recommendation engines that use collaborative filtering. The steps are to generate signals, build an item recommendation, build a personal recommendation, store the results in a database, expose them through a recommendation API, show them in the user application and store the user's actions for the next round.

Built directly on a graph database, the flow is shorter: import the source data, construct the graph, run graph queries, optimise performance and visualise. Typical uses are movie and e-commerce recommendations, social media applications, fraud detection, search engines and access management.

Where do AI agents fit?

A graph shows connections, but someone must decide what to do about a suspicious cluster. An AI agent can run the graph queries, gather the related transactions and account records, summarise why the cluster looks unusual and hand the case to an investigator. The investigator makes the decision, and the agent works within limits the organisation sets, leaving a record of each step. ElixirData is XenonStack's Context OS, a platform for governed context and decision records.

What should you check before you start?

The Link analysis article on Wikipedia lists limits that apply to any link analysis project. Data is often incomplete, may contain errors from faulty collection or deliberate concealment, and the same term can mean different things in different sources. Results also depend on domain experts, and diagram layout can shape how groups are perceived. Being linked to a suspect is not proof of guilt.

  • Data quality. Check completeness and identifiers before loading.
  • Definitions. Agree what each field and relationship means across sources.
  • Review. Make sure a person confirms any link before action is taken.
  • Privacy. Decide who may see the graph and which attributes it shows.
  • Scale. Test layout and query speed on a realistic volume.

To map one decision your investigation agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is visual link analysis?

It is a technique that represents relationships between people, accounts or transactions as a graph so that patterns and anomalies can be seen and investigated.

Why use a graph database for link analysis?

A graph database stores relationships directly, so questions about connections between entities are quick to ask and easy to visualise.

How is a transaction graph built?

A graph tool reads transaction data from a CSV file and creates vertices for the users and edges for the payments between them. The relationships are exported to a GraphML file and opened in a visualisation tool.

What are the limits of link analysis?

Data may be incomplete or contain errors, terms can differ between sources, and being linked to a suspect does not prove guilt, so a person must review any finding.

How do AI agents help with link analysis?

An agent can run graph queries, collect related records and summarise unusual clusters for an investigator, who decides what to do next.

Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue