Skip to main content

datasynth_graph/
lib.rs

1//! # synth-graph
2//!
3//! Graph/network export library for synthetic accounting data.
4//!
5//! This crate provides:
6//! - Graph models for representing accounting data as networks
7//! - Builders for creating transaction, approval, and entity graphs
8//! - Exporters for PyTorch Geometric, Neo4j, and DGL formats
9//! - ML utilities for feature extraction and dataset splitting
10//!
11//! ## Graph Types
12//!
13//! - **Transaction Network**: Accounts/entities as nodes, transactions as edges
14//! - **Approval Network**: Users as nodes, approvals as edges (for SoD detection)
15//! - **Entity Relationship**: Legal entities with ownership edges
16//!
17//! ## Export Formats
18//!
19//! - **PyTorch Geometric**: node_features.pt, edge_index.pt, edge_attr.pt
20//! - **Neo4j**: CSV files with Cypher import scripts
21//! - **DGL**: Compatible format for Deep Graph Library
22
23#![allow(ambiguous_glob_reexports)]
24
25pub mod builders;
26pub mod exporters;
27pub mod ml;
28pub mod models;
29
30#[cfg(test)]
31pub(crate) mod test_helpers;
32
33pub use builders::*;
34pub use exporters::*;
35pub use ml::*;
36pub use models::*;