algo-net-community

Solid

"Implement Louvain community detection to discover densely connected groups in networks. Use this skill when the user needs to find communities or clusters in social/organizational networks, segment customers by interaction patterns, or analyze network modular structure — even if they say 'find groups in this network', 'community detection', or 'network clustering'.".

AI & Automation 22 stars 8 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Louvain Community Detection ## Overview Louvain algorithm detects communities by optimizing modularity — the fraction of edges within communities minus expected fraction if edges were random. A greedy, hierarchical algorithm that runs in O(n log n) for sparse graphs. Produces a hierarchy of communities at multiple resolutions. ## When to Use **Trigger conditions:** - Discovering natural groupings in social, organizational, or interaction networks - Segmenting users/customers by behavioral similarity - Analyzing modular structure of complex networks **When NOT to use:** - For overlapping communities (use DEMON or BigCLAM) - When communities are pre-defined and you're classifying nodes (use label propagation) ## Algorithm ``` IRON LAW: Modularity Has a RESOLUTION LIMIT Louvain optimizes modularity, which has a known resolution limit (Fortunato & Barthélemy, 2007): it cannot detect communities smaller than √(2E) where E = total edges. In large networks, small but real communities may be merged. Use multi-resolution methods or Leiden algorithm (improved Louvain) for better results. ``` ### Phase 1: Input Validation Build undirected weighted graph from interaction data. Edge weights represent interaction strength (frequency, duration, volume). **Gate:** Graph loaded, no isolated nodes (or decide how to handle them). ### Phase 2: Core Algorithm **Phase 1 — Local moves:** 1. Assign each node to its own community 2. For each node, compute modularity gain of moving to each ...

Details

Author
charlieviettq
Repository
charlieviettq/awesome-agent-skill
Created
2 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

algo-net-centrality

"Calculate network centrality metrics to identify important nodes in graphs. Use this skill when the user needs to find key influencers, critical infrastructure nodes, or central actors in a network — even if they say 'who is most important in this network', 'key nodes', or 'network influence measurement'.".

22 Updated 6 days ago
charlieviettq
AI & Automation Listed

community-led-growth

Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

2 Updated today
NewAbra
AI & Automation Listed

alterlab-nmc-community-manager

This skill should be used when the user asks about "community management", "online community", "engagement strategy", "content moderation", "community building", "growth hacking", "act as a community manager", "community manager mode", "Discord server", "community health", "member engagement", "moderation policy", "community metrics", "community guidelines", "member onboarding", "Reddit community", "Slack workspace", "community health dashboard", "engagement calendar", "community governance", or needs expertise in building, growing, and managing online communities. Part of the AlterLab FC Skills collection (New Media & Communication department).

1 Updated today
prone-dc302