| … | … | @@ -9,10 +9,17 @@ extends PanelContainer |
| 9 | 9 | @onready var graph_canvas: Control = %GraphCanvas |
| 10 | 10 | |
| 11 | 11 | const ALGO_PRESETS: Array[Dictionary] = [ |
| 12 | | {"name": "members-only", "features": [{"type": "members", "weight": 1.0}], "threshold": 0.5, "minSize": 2}, |
| 13 | | {"name": "topics-only", "features": [{"type": "topics", "weight": 1.0}], "threshold": 0.3, "minSize": 2}, |
| 14 | | {"name": "category-only", "features": [{"type": "category", "weight": 1.0}], "threshold": 0.1, "minSize": 2}, |
| 15 | | {"name": "combined", "features": [{"type": "members", "weight": 1.0}, {"type": "topics", "weight": 0.5}], "threshold": 0.4, "minSize": 2}, |
| 12 | # Simple slices |
| 13 | {"name": "category", "features": [{"type": "category", "weight": 1.0}], "threshold": 0.1, "minSize": 2}, |
| 14 | {"name": "creator", "features": [{"type": "creator", "weight": 1.0}], "threshold": 0.1, "minSize": 2}, |
| 15 | {"name": "activity", "features": [{"type": "activity", "weight": 1.0}], "threshold": 0.1, "minSize": 2}, |
| 16 | {"name": "size", "features": [{"type": "size", "weight": 1.0}], "threshold": 0.1, "minSize": 2}, |
| 17 | {"name": "topics", "features": [{"type": "topics", "weight": 1.0}], "threshold": 0.3, "minSize": 2}, |
| 18 | {"name": "members", "features": [{"type": "members", "weight": 1.0}], "threshold": 0.5, "minSize": 2}, |
| 19 | # Stacked combos (pie → sub-slice) |
| 20 | {"name": "creator+category", "features": [{"type": "creator", "weight": 1.0}, {"type": "category", "weight": 0.8}], "threshold": 0.3, "minSize": 2}, |
| 21 | {"name": "activity+topics", "features": [{"type": "activity", "weight": 1.0}, {"type": "topics", "weight": 0.7}], "threshold": 0.3, "minSize": 2}, |
| 22 | {"name": "category+activity", "features": [{"type": "category", "weight": 1.0}, {"type": "activity", "weight": 0.6}], "threshold": 0.2, "minSize": 2}, |
| 16 | 23 | ] |
| 17 | 24 | |
| 18 | 25 | var _clusters: Array = [] |