Skip to content

Program: Transaction Network Generator

hkanezashi edited this page Aug 21, 2019 · 11 revisions

Transaction network generator is a Python script to generate a network topology for the simulator.

Requirements

  • Python package
    • NetworkX 1.11 (2.x will not work)

Input files

Please see the "input" section in the configuration file conf.json.

{
//...
  "input": {
    "directory": "paramFiles/1K",  // Parameter directory
    "schema": "schema.json",  // Configuration file of output CSV schema
    "accounts": "accounts.csv",  // Account list parameter file
    "alert_patterns": "alertPatterns.csv",  // Alert list parameter file
    "degree": "degree.csv",  // Degree sequence parameter file
    "transaction_type": "transactionType.csv",  // Transaction type list file
    "is_aggregated_accounts": true  // Whether the account list represents aggregated (true) or raw (false) accounts
  },
//...
}

Parameter files

Please find the following CSV files under paramFiles directory. The description of the data schema is here.

  • accounts.csv: Account parameter file
  • alertPatterns.csv: Alert (fraud) transaction pattern parameter file
  • degree.csv: Degree distribution parameter file
  • transactionType.csv: Transaction distribution parameter file

How to run

cd /path/to/AMLSim
python3 scripts/transaction_graph_generator.py conf.json

The argument of this script is the configuration file path.

Clone this wiki locally