Skip to content

Program: Transaction Network Generator

hkanezashi edited this page Apr 25, 2019 · 11 revisions

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

Requirements

  • NetworkX 1.10 (2.0 or later will not work)

How to run

1. Load an account parameter file and create all accounts

See here for more details.

python scripts/transaction_graph_generator.py [PropFile] [DegreeFile] [TransactionTypeFile] [AlertFile]
  • PropFile: Configuration file path (prop.ini) of the transaction graph generator
  • DegreeFile: Degree distribution parameter file
  • TransactionTypeFile: Transaction type parameter file
  • AlertFile: Alert parameter file

Example:

python scripts/transaction_relationship_generator.py prop.ini paramFiles/deg1K.csv paramFiles/tx_type.csv paramFiles/alerts.csv

Parameter and configuration files

See CSV files under paramFiles directory

  • 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

Configuration file

  • prop.ini
Clone this wiki locally