How khalil212002/causaldiscovery works
Causalitty is a desktop causal-discovery application for editing variable graphs and viewing conditional independencies implied by them. The principal workflow starts the Qt app, opens the graph editor, and lets users add variables and connect or remove relationships; the independencies screen derives and displays implied assertions from the scene’s graph. The graph model handles directed and undirected edges and validates conversion to a DAG. The README contains no product description, so capability coverage and connections here rely on the supplied source index and excerpts; several UI and rendering details are unsampled.
Main entry points: graph_node.py Graph Node View · CPDAG.py CPDAG Operations · main.py App Startup · splash_screen.py Splash Screen
Components 17
Application UI
- App Startup
src/main.py - Splash Screen
src/screens/splash_screen.py - Main Screen
src/screens/main_screen.py - Independencies View
src/screens/independencies_screen.py
Graph Editor
- Editor Window
src/graph_editor/graph_editor.py - Editor Scene
src/graph_editor/graph_editor_scene.py - CPDAG Scene
src/graph_editor/CPDAG_editor_scene.py - Graph Node View
src/graph_editor/graph_node.py - Graph Arrow View
src/graph_editor/graph_arrow.py
Causal Graph Model
- CPDAG Operations
src/CPDAG/CPDAG.py - Variable Node
src/CPDAG/node.py - Graph Arrow
src/CPDAG/arrow.py
Shared UI Models
- Variable Types
src/models/var_types.py - Type Colors
src/models/var_colors.py - UI Colors
src/models/ui_colors.py - App Settings
src/models/app_info.py
Other components
- User
Connections 27
- User → App Startup: launches
- App Startup → Splash Screen: shows
src/main.py - App Startup → Main Screen: opens
src/main.py - App Startup → App Settings: loads steps
src/main.py - Main Screen → Editor Window: creates
src/screens/main_screen.py - Main Screen → Independencies View: creates
src/screens/main_screen.py - Editor Window → CPDAG Scene: creates
src/graph_editor/graph_editor.py - CPDAG Scene → Editor Scene: uses
src/graph_editor/CPDAG_editor_scene.py - CPDAG Scene → CPDAG Operations: uses
src/graph_editor/CPDAG_editor_scene.py - Editor Scene → Graph Node View: creates
src/graph_editor/graph_editor_scene.py - Editor Scene → Graph Arrow View: creates
src/graph_editor/graph_editor_scene.py - Graph Node View → Variable Node: extends
src/graph_editor/graph_node.py - Graph Node View → Variable Types: uses
src/graph_editor/graph_node.py - Graph Node View → Type Colors: uses
src/graph_editor/graph_node.py - Graph Node View → UI Colors: uses
src/graph_editor/graph_node.py - Graph Arrow View → Graph Arrow: uses
src/graph_editor/graph_arrow.py - Graph Arrow View → UI Colors: uses
src/graph_editor/graph_arrow.py - CPDAG Operations → Variable Node: manages
src/CPDAG/CPDAG.py - CPDAG Operations → Graph Arrow: attaches
src/CPDAG/CPDAG.py - CPDAG Operations → Variable Types: classifies
src/CPDAG/CPDAG.py - Graph Arrow → Variable Node: links
src/CPDAG/arrow.py - Variable Node → Variable Types: stores type
src/CPDAG/node.py - Independencies View → CPDAG Operations: derives assertions
src/screens/independencies_screen.py - Independencies View → Editor Scene: observes changes
- Splash Screen → UI Colors: uses
src/screens/splash_screen.py - Splash Screen → App Settings: reads labels
src/screens/splash_screen.py - Splash Screen → Type Colors: uses
src/screens/splash_screen.py