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