10 - The Relationship Graph: 52 Types and Community Detection
Play The Event social relationship system: 52 types across 10 categories, weighted bidirectional links, community detection for smart seating and conf
Play The Event social relationship system: 52 types across 10 categories, weighted bidirectional links, community detection for smart seating and conflict detection.
What you'll learn
- 52 relationship types in 10 categories cover family, social, organizational, and negative connections
- Weights from -1.0 to +1.0 drive graph algorithms for seating, suggestions, and conflict detection
- RelationshipStrength maps continuous weights into 9 discrete levels used across the UI
- Automatic bidirectionality: symmetric types (spouse, friend) vs. directional types (parent/child)
- State machine (PENDING, ACCEPTED, REJECTED) ensures bilateral consent for all connections
This article is part of the Play the Event series on federicocalo.dev.
Read the full article
The complete article (16 min read) with code examples, diagrams, and practical exercises is available here:
➡️ 10 - The Relationship Graph: 52 Types and Community Detection
https://federicocalo.dev/en/blog/pte-relationship-graph-community-detection
By Federico Calò — Software Developer & Technical Writer