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

  • Python package
    • NetworkX 1.10 (2.0 or later will not work)

Input files

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

Configuration file

  • prop.ini: Property file

How to run

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

Clone this wiki locally