How carvilsi/gruphst works
Main Components
a) Core Components:
• Graph Storage Engine (in-memory)
• Persistence Layer
• Query Engine
• Import/Export System
• Configuration Manager
• Logging System
• Cryptography Module
b) Data Structures:
• Vertices
• Edges
• Attributes
• Graphs Collection
┌─ Client Interface Layer ─────────────────────────────────┐
• Public API (lib.rs) │
• Core Processing Layer ──────────────────────────────────┤
• ┌─ Graph Engine ─┐ ┌─ Query Engine ┐ ┌─ Stats ─┐ │
• Vertex Management│ │ Edge Queries │ │ Memory │ │
• Edge Management │ │ Vertex Queries│ │ Metrics │ │
• ┘ └──────────────┘ └────────┘ │
• Storage Layer ───────────────────────────────────────┤
• ┌─ In-Memory Store ┐ ┌─ Persistence ┐ │
• Graphs Vault │ │ File Storage │ │
• Index Manager │ │ CSV Handler │ │
• ┘ └─────────────┘ │
• Support Services Layer ─────────────────────────────────┤
• ┌─ Configuration ┐ ┌─ Logging ┐ ┌─ Cryptography ┐ │
• ENV Variables │ │ Levels │ │ Argon2 Hash │ │
• Memory Limits │ │ Output │ │ Verification │ │
• ┘ └─────────┘ └──────────────┘ │
• ┘
Important Relationships to Highlight
• How the Graph Engine interacts with the In-Memory Store
• Relationship between Query Engine and Graph Engine
• Demonstrate how Persistence Layer connects to both In-Memory Store and File Storage
• Configuration Manager's influence on all components
• How Logging System monitors all operations
Implementation Details
• src/graphs/ - Core graph operations
• src/vertex/ - Vertex management
• src/edge/ - Edge management
• src/config/ - Configuration handling
• src/logger/ - Logging functionality
• src/exporter_importer/ - Data import/export
Additional Notes
• Notes about configurable elements (CSV delimiter, log levels, memory limits)
• Error handling paths
• Test coverage points