You want to find communities of accounts that transact mostly with each other in a 500-million-edge payment graph. What fits?
- Exam domain
- Data Analysis14% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Data Analysis (14% of the exam)
Objective in the exam guide: Creating and analyzing graph data using something like cuGraph
Creating and analyzing graph data is named.
Why D is the answer
A community detection algorithm such as Louvain in cuGraph
Community detection groups densely connected nodes. cuGraph runs algorithms such as Louvain on GPUs, which suits graphs of this size.
Remember: Use cuGraph community detection at scale.
How it works
Graph analysis on GPUs uses cuGraph for algorithms such as community detection, PageRank and traversal.
In detail
- Communities: densely connected groups.
- cuGraph scales graph analytics on GPUs.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Load the edges into a pandas DataFrame and loop over every account in Python one at a timeWrong
Python loops over 500 million edges are far too slow.
B. A SQL GROUP BY on account IDWrongMost tempting
GROUP BY ignores connections.
Why it tempts: SQL feels like the natural tool for transactions.
C. A bar chart of account balancesWrong
Balances ignore the graph.
D. A community detection algorithm such as Louvain in cuGraphRight
Use cuGraph community detection at scale.
Use case
An illustrative scenario, not a real incident.
Illustrative: Louvain finds a ring of 40 accounts moving funds in a loop.
See it in different ways
flowchart LR S0["Build edge list in cuDF"] --> S1["Create cuGraph graph"] --> S2["Run Louvain"] --> S3["Inspect communities"]
How to read this chart
- Read it in order: Build edge list in cuDF, then Create cuGraph graph, then Run Louvain, then Inspect communities.
mindmap
root(("cuGraph"))
n1["Importance"]
n2["PageRank"]
n3["Communities"]
n4["Louvain"]
n5["Leiden"]
n6["Paths"]
n7["BFS"]
n8["Shortest path"]How to read this chart
- The centre is "cuGraph".
- "Importance" covers "PageRank".
- "Communities" covers "Louvain", "Leiden".
- "Paths" covers "BFS", "Shortest path".