Papers
Topics
Authors
Recent
Search
2000 character limit reached

Size-Bounded Community Search

Updated 9 July 2026
  • Size-Bounded Community Search is the task of extracting a subgraph that includes a designated query node and meets explicit size constraints while optimizing structural cohesiveness.
  • It encompasses both query-centric and partition-based formulations, employing models like triangle-connected trusses, connected k-cores, and modularity optimization to enforce size limits.
  • The topic tackles NP-hard challenges through branch-and-bound frameworks, exact enumeration, and heuristics, achieving efficient performance even on large and heterogeneous networks.

Size-bounded community search studies community identification under explicit cardinality constraints rather than relying on indirect control of scale. In the query-centric formulations, the task is to return a subgraph that contains a designated query node and satisfies a prescribed size condition while optimizing a cohesiveness criterion; in related partition-based work, the task is to optimize a global objective while requiring every community in a partition to lie within user-specified size bounds. Recent arXiv work formalizes this theme in heterogeneous information networks (HINs), attributed graphs, and modularity-based graph partitioning, and collectively shows that size bounds are not a cosmetic post-processing rule but a primary modeling constraint that changes both the optimization problem and the algorithmic design (Zhang et al., 20 Aug 2025, Wang et al., 2024, Silva et al., 24 May 2026).

1. Scope and formal problem statements

Two query-centric formulations are explicit. In HINs, the size-bounded community search problem takes as input an HIN HH, a symmetric meta-path PP, a query node qq of the target type, and a size bound sN+s\in\mathbb N^+, and returns a subgraph GP=(V,E)G_P'=(V^*,E^*) with V=s|V^*|=s and qVq\in V^* such that EE^* induces a triangle-connected (k,P)(k^*,P)-truss of maximum possible kk^*. In attributed graphs, the size-bounded extension of CS-AG takes an attributed graph PP0, a query node PP1, integers PP2, PP3, PP4, and the attribute distance PP5, and asks for a connected PP6-core PP7 containing PP8 with PP9 that minimizes the qq0-centric attribute distance

qq1

A related but distinct global formulation is the size-constrained maximum-modularity problem, where a partition qq2 of an undirected, unweighted graph must satisfy qq3 for every community qq4 and optimize modularity over the family of feasible partitions (Zhang et al., 20 Aug 2025, Wang et al., 2024, Silva et al., 24 May 2026).

Setting Feasibility condition Optimization target
HIN community search qq5, qq6, triangle-connected qq7-truss Maximum possible qq8
Attributed-graph community search qq9, connected sN+s\in\mathbb N^+0-core, sN+s\in\mathbb N^+1 Minimize sN+s\in\mathbb N^+2
Modularity-based partitioning Every community satisfies sN+s\in\mathbb N^+3 Maximize sN+s\in\mathbb N^+4

This terminology matters. The HIN and attributed-graph problems are community search problems because they are anchored at a query node sN+s\in\mathbb N^+5. The modularity formulation is a size-constrained community detection problem over an entire partition. A plausible implication is that the literature uses closely related constraint machinery in settings with materially different output semantics: one community around a query versus a full partition of the graph.

2. Cohesiveness models and objective functions

In HINs, the search space is built from a meta-path-derived homogeneous graph. A HIN is a directed graph sN+s\in\mathbb N^+6 with a node-type mapping sN+s\in\mathbb N^+7 and an edge-type mapping sN+s\in\mathbb N^+8. A meta-path sN+s\in\mathbb N^+9 of length GP=(V,E)G_P'=(V^*,E^*)0 is a sequence GP=(V,E)G_P'=(V^*,E^*)1, and the work assumes symmetric GP=(V,E)G_P'=(V^*,E^*)2. Collecting all GP=(V,E)G_P'=(V^*,E^*)3-pairs over nodes of a chosen target type yields a homogeneous, undirected graph GP=(V,E)G_P'=(V^*,E^*)4. Cohesiveness is then defined through a refined GP=(V,E)G_P'=(V^*,E^*)5-truss model: a triangle is a triplet GP=(V,E)G_P'=(V^*,E^*)6 such that each pair is a GP=(V,E)G_P'=(V^*,E^*)7-pair in GP=(V,E)G_P'=(V^*,E^*)8; the support of an edge is the number of triangles containing it; a GP=(V,E)G_P'=(V^*,E^*)9-truss is a maximum edge-set V=s|V^*|=s0 in V=s|V^*|=s1 such that every V=s|V^*|=s2 has support at least V=s|V^*|=s3; and triangle connectivity requires that every pair of triangles in V=s|V^*|=s4 be connected through a sequence of adjacent triangles (Zhang et al., 20 Aug 2025).

In attributed graphs, the structural constraint is a connected V=s|V^*|=s5-core and the quality criterion is explicitly query-centric. The extension to size-bounded CS leaves the attribute-distance and confidence-interval machinery unchanged and only inserts size checks into the exact and approximate procedures. The central objective remains minimization of V=s|V^*|=s6, which averages V=s|V^*|=s7 over nodes in the returned community other than the query node. The paper states that the metric considers both textual and numerical attributes and emphasizes correlation with the query node V=s|V^*|=s8 (Wang et al., 2024).

In modularity-based partitioning, the graph is V=s|V^*|=s9 with qVq\in V^*0, qVq\in V^*1, adjacency matrix qVq\in V^*2, degree qVq\in V^*3, and resolution parameter qVq\in V^*4. The modularity objective is

qVq\in V^*5

where qVq\in V^*6 if qVq\in V^*7 and qVq\in V^*8 are in the same community and qVq\in V^*9 otherwise. With modularity matrix EE^*0, EE^*1, this can be written as

EE^*2

To impose size constraints, the heuristic replaces EE^*3 by a penalized objective

EE^*4

where EE^*5 and

EE^*6

The square-root form is stated to be sub-additive, which encourages coalescence of marginally violating clusters during local moves (Silva et al., 24 May 2026).

3. Computational hardness and exact formulations

For HINs, the decision version of size-bounded community search is NP-complete via reduction from CLIQUE. Given a graph EE^*7, the reduction constructs a two-type HIN in which each original edge EE^*8 maps to a new node EE^*9 plus edges (k,P)(k^*,P)0 and (k,P)(k^*,P)1 under the meta-path (k,P)(k^*,P)2. The proof shows that a clique of size (k,P)(k^*,P)3 in the original graph corresponds to an (k,P)(k^*,P)4-clique, and hence an (k,P)(k^*,P)5-truss of trussness (k,P)(k^*,P)6, containing a special query node (k,P)(k^*,P)7 (Zhang et al., 20 Aug 2025).

For attributed graphs, the size-bounded version remains NP-hard because it subsumes the unconstrained CS-AG problem. The paper does not give a new reduction in the size-bounded section; instead, it observes that setting (k,P)(k^*,P)8 recovers the unconstrained case, so the hardness result carries over directly (Wang et al., 2024).

In modularity optimization, the exact baseline is formulated as a (k,P)(k^*,P)9–kk^*0 integer linear program for the variant with at most kk^*1 communities. Binary variables kk^*2 encode assignment of node kk^*3 to community index kk^*4, and binary variables kk^*5 encode whether nodes kk^*6 and kk^*7 share a community. The objective maximizes

kk^*8

subject to assignment constraints kk^*9, sign-sensitive consistency constraints over PP00 and PP01, and size bounds PP02 together with PP03 to enforce either emptiness or size at least PP04. The implementation uses Gurobi 10.x with default MIP tolerances, allowing a PP05 optimality gap on larger graphs and exact solve on PP06 (Silva et al., 24 May 2026).

4. Algorithmic strategies

The HIN work develops a branch-and-bound framework, kcBB, that enumerates size-PP07 node sets containing PP08. Direct enumeration over PP09 candidates is tightened by lexicographic generation of size-PP10 subsets, upper bounds on achievable trussness from a partial state PP11, dominance-based branching, candidate reductions, and early termination. The node-based and edge-based upper bounds both run in PP12 by triangle enumeration. Dominance is defined in edge and triangle forms, and the total search order sorts PP13 by nondecreasing distance to PP14, tie-broken by nonincreasing node trussness. Candidate reductions remove nodes with trussness at most the current best PP15, nodes not PP16-triangle-connected to PP17, and nodes whose distance enforces too large a minimum truss increase. A heuristic lower bound is obtained from meta-path “stars”: each PP18-star is a clique in PP19, and seeds containing PP20 are either truncated to size PP21 or greedily merged and then pruned. Two exact algorithms are built on top of this framework: node-set enumeration (NSG), whose worst-case time complexity is PP22, and edge-set enumeration (ESG), whose search tree depth is at most PP23 and whose stated worst-case complexity is PP24 (Zhang et al., 20 Aug 2025).

For attributed graphs, the exact enumeration algorithm is extended by adding size checks: if a candidate subcore is too large, recursion stops; if it is already too small, recursion also stops because the process only deletes nodes; and the current best is updated only when PP25. The three pruning strategies—duplicate-state, unnecessary, and unpromising by lower bound—carry over unchanged. The approximate method modifies the sampling-estimation framework in three places: the Hoeffding-based minimum sample-neighborhood size replaces the term PP26 by PP27, requiring

PP28

the greedy enumeration ignores candidates with size PP29 and stops the peel-off chain if the size would drop below PP30; and early termination is allowed once a feasible PP31 is found with bootstrap-computed confidence-interval half-width PP32 satisfying

PP33

The paper characterizes the approximation output by a confidence interval rather than only by a loose approximation ratio (Wang et al., 2024).

For modularity-based partitioning, the principal heuristic is constrained Leiden. It begins with PP34, runs standard Leiden, and, if the resulting partition violates any PP35 constraint, sets PP36 and re-runs Leiden seeded from the previous partition until a feasible partition is found. During local moves and refinement, moving node PP37 from community PP38 to PP39 is evaluated by

PP40

and the move is accepted if PP41. Each Leiden run is PP42 on sparse graphs, and the worst-case number of penalty doublings is PP43, yielding total cost PP44 (Silva et al., 24 May 2026).

5. Empirical behavior across graph settings

The modularity study compares UL (Unconstrained Leiden), CL (Constrained Leiden), and CIP (Constrained IP). On planted-partition benchmarks with PP45, average degree PP46, two equal-size communities, mixing PP47, and size bounds PP48, the reported metrics are Adjusted Mutual Information (AMI), achieved standard PP49, and community size distributions. UL often achieves higher PP50 but violates size bounds and yields low AMI below the detectability limit PP51. CL and CIP both satisfy size bounds, and CL’s AMI tracks CIP closely, within PP52–PP53. On a ring of PP54 cliques of size PP55, UL retrieves the planted partition only for PP56, whereas CL retrieves it at PP57 with PP58. On the Budapest brain connectome with PP59, UL yields four trivial clusters, while neuroscience atlases suggest relative community-size ranges PP60 or PP61; averaging gives PP62, PP63, and CL at PP64 returns PP65 clusters closely matching known functional systems. In runtime terms, UL and CL scale to millions of edges in seconds, whereas CIP scales to PP66 before memory/time blowup (Silva et al., 24 May 2026).

The HIN study evaluates on Amazon, DBLP, DoubanMovie, Aminer, and Freebase, with schema sizes ranging from PP67–PP68, PP69–PP70, and PP71–PP72 meaningful symmetric meta-paths per dataset. It uses PP73 queries per dataset with random PP74 and query node PP75, and size bound PP76. The baselines are SC-BRB and ST-Exa; the proposed methods are SCSHEVPP77 and SCSHEPPP78. Quality is measured by PP79-pair density, PP80, and average PathSim similarity over all node pairs in the community. The reported outcome is that SCSHEVPP81 yields the highest densities and similarities across all datasets and sizes, often returns a clique when PP82 is small on DBLP, Aminer, and Freebase, and is also the fastest; SCSHEPPP83 is slower but outperforms the baselines. On Freebase, with up to PP84 billion PP85-edges, NSG with the stated optimizations still solves most queries within minutes (Zhang et al., 20 Aug 2025).

The attributed-graph study reports size-bounded experiments on DBLP and GitHub with PP86, PP87, and upper bound PP88 varying from PP89 to PP90, averaged over PP91 random queries. On DBLP, response time decreases from approximately PP92 ms at PP93 to approximately PP94 ms at PP95, while relative error decreases from approximately PP96 to approximately PP97. On GitHub, response time decreases from approximately PP98 ms to approximately PP99 ms, and relative error from approximately qq00 to approximately qq01. In every case, the absolute relative error remains below the user-specified qq02 bound, and runtime falls as the maximum size bound grows because the greedy peel needs fewer steps (Wang et al., 2024).

6. Interpretation, implementation, and recurrent misconceptions

A recurrent misconception in modularity-based practice is that tuning the resolution parameter qq03 is an adequate surrogate for explicit size control. The size-constrained modularity study rejects that equivalence on several grounds. Changing qq04 shifts the average community size—smaller qq05 produces fewer larger clusters and larger qq06 produces more smaller clusters—but does not force every community size to lie in qq07. The paper also states that resolution changes cannot directly reduce the variance qq08 once qq09 is fixed, whereas the size-constrained approach simultaneously controls the minimum and maximum community size and hence the variation. The ring-of-cliques example is used as a concrete counterexample to the idea that a resolution sweep can reliably enforce individual size bounds (Silva et al., 24 May 2026).

Implementation details reflect the same distinction between explicit constraints and indirect tuning. Constrained Leiden is available in leidenalg v0.10+ for Python and libleidenalg for C++, and passing min_community_size and max_community_size activates the penalty-based move evaluation and progressive qq10 schedule; an init_membership argument can be used to speed repeated runs. In the HIN and attributed-graph settings, by contrast, size bounds are embedded directly in the search logic through candidate generation, pruning, or termination conditions rather than through a global penalty on partition quality (Silva et al., 24 May 2026, Zhang et al., 20 Aug 2025, Wang et al., 2024).

Across these lines of work, size-boundedness serves different operational roles. In HINs, the motivation is that “a size constraint is often imposed due to limited resources.” In modularity-based detection, the motivation is that domain experts may have prior expectations about the size of communities. In attributed graphs, the size-bounded extension is treated as a direct modification of CS-AG with unchanged attribute-distance machinery. This suggests that size-bounded community search is best understood not as a single algorithmic recipe but as a family of constrained optimization problems whose common feature is explicit cardinality control, while the structural model—triangle-connected qq11-truss, connected qq12-core, or modularity-defined partition—determines the relevant objective, hardness, and feasible algorithmic strategy.

Topic to Video (Beta)

Whiteboard

Follow Topic

Get notified by email when new papers are published related to Size-Bounded Community Search.