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.
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?
- 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.
- Relate. Each edge links an origin vertex to a destination vertex, so a payment between two users is stored as a relationship.
- Export. The relationships are written as XML to a GraphML file.
- 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.
- 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?
| Question | Pattern analysis | Link analysis |
|---|---|---|
| Focus | The shape and sequence of a recurring pattern | Relationships and connections between nodes |
| Typical question | What will happen next, given this pattern? | Who is connected to whom, and how closely? |
| Output | A prediction or description of the pattern | A graph of nodes and links with anomalies highlighted |
| Data shape | Sequences, events and attributes | Entities and the relationships between them |
| Works best with | History that repeats at regular intervals | Networks 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.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE