Getting Started:
- Quick Start: Use the example selector in the Graph Builder to load a pre-defined causal loop diagram
- Visual Builder: Create nodes and connections using the visual interface with color pickers and optional icons
- Text Builder: Define your graph using simple text notation including hex colors
- Export/Import: Save your graphs as .clg files and load them later
Graph Definition Format:
- Connections: NodeA -> NodeB (multiplier, polarity)
- Multiplier: 0.1 to 1.0 (strength of influence)
- Polarity: + (positive) or - (negative)
- Node Values: NodeName: initial_value (perturbation_amount)
- Perturbation Amount: Optional, defaults to 5 if not specified
- Node Labels: NodeName: "Display Label"
- Node Colors: NodeName: #hexcolor (e.g., #ff0000 for red)
- Node Icons: NodeName: data:image/... (base64 encoded images, optional)
Example Definition:
Population -> Resources (0.8, -)
Resources -> QualityOfLife (0.6, +)
QualityOfLife -> Population (0.5, +)
Node values:
Population: 100 (15)
Resources: 80 (10)
QualityOfLife: 70 (8)
Node labels:
Population: "Population Growth"
Resources: "Natural Resources"
QualityOfLife: "Quality of Life"
Node colors:
Population: #4a90e2
Resources: #50c878
QualityOfLife: #ff6b6b
Simulation Features:
- Real-time Animation: Watch values propagate through the causal loop
- Speed Control: Adjust animation speed from 100ms to 2000ms
- Damping Factor: Control system stabilization (0.1 = fast, 1.0 = oscillates)
- Node Controls: Individual sliders for each node
- Reset Function: Return all nodes to initial values
Manual Perturbation:
- Green up arrow: Click to increase node value by its perturbation amount
- Red down arrow: Click to decrease node value by its perturbation amount
- Interactive Control: Arrows appear above and below each node
- Custom Amounts: Each node can have its own perturbation amount
- System Testing: Use these to manually disturb the system and observe effects
File Operations:
- Export Graph: Click "Export Graph" to save current diagram as a .clg file
- Import Graph: Use "Import from File" to load previously saved .clg or .txt files
- File Format: Both .clg and .txt files use the same plain text format
- Automatic Naming: Exported files include timestamp for easy organization
- Validation: Import validates file format and shows errors if invalid
- Icon Support: Icons are embedded as base64 data in exported files
Using Node Icons:
- Upload Icons: Click the icon upload button in the visual builder
- Supported Formats: PNG, JPG, GIF, SVG, and other image formats
- Size Limit: Icons must be smaller than 1MB
- Auto-fitting: Icons are automatically resized and clipped to fit within nodes
- Optional: Icons are completely optional - nodes work without them
- Export/Import: Icons are preserved when saving and loading graphs