arXiv:2611.05951cs.SINov 2026

Manuscript Offprint

arXiv:2611.05951

Community Search under Member-Specific Tolerances

Yanghao Liu, Fangda Guo, Yuxuan Zhang, Xueqi Cheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yanghao Liu ID∗^{ID*}, Fangda Guo ID†^{ID†}, Yuxuan Zhang ID∗^{ID*}, Xueqi Cheng ID∗^{ID*}

∗^{*}State Key Laboratory of AI Safety

Institute of Computing Technology, Chinese Academy of Sciences

†^{\dagger}Shenyang Institute of Automation, Chinese Academy of Sciences

liuyanghao@ict.ac.cn; guofangda@sia.cn; zhangyuxuan@ict.ac.cn; cxq@ict.ac.cn

Abstract—We study community search when each vertex has its own tolerance for differences in position. For positions such as opinions or homes, a latitude-consistent community (LCC) contains the query vertex, is connected, has minimum degree at least k, and bounds its diameter by the smallest member tolerance. Motivated by social judgment theory, the bound exactly characterizes persistent acceptance of every interaction in a closed group under bounded-confidence dynamics with arbitrary positive weights. It also prevents rejection under social-judgment dynamics, whereas natural relaxations preserve neither guarantee. Finding a maximum LCC is NP-hard even in the plane, and with unbounded dimension, deciding whether an LCC exists is NP-complete for every fixed k≥2k \geq 2. LatSweep turns the coupled bound into a sweep over the smallest tolerance, yielding two feasible heuristics, a (1,2)-bicriteria approximation and an exact branch-and-bound algorithm. Across eight graphs with up to 1.8 billion edges, the exact algorithm proves optimality on all but 9 of 3,700 efficiency queries and usually certifies absence within microseconds when no LCC exists. Its branch-and-bound solver proves more queries than a reimplemented maximum- (k,r)(k,r)-core algorithm, a mixed-integer program and CP-SAT. In simulations, uneven influence disrupts initially accepted interactions in pairwise groups. Outside ties invalidate the guarantee for many real groups. On two location-based networks, tolerance-agnostic groups often place another member's home beyond a member's estimated travel radius; comparisons with spatial communities of the same size detect no co-visit loss from enforcing every member's tolerance.

Index Terms—Community search, cohesive subgraphs, opinion dynamics, approximation algorithms

I. INTRODUCTION

For a query vertex qq, community search identifies a cohesive subgraph containing qq [1], [2]. When vertices have positions, such as opinions, interest profiles or homes, existing models enforce compactness using a shared threshold [3]–[5] or by minimizing spread [6], [7]. A shared threshold does not express how much variation each individual accepts. Social judgment theory (SJT) [8] describes a latitude of acceptance around each person's position, with a width that varies across individuals. Likewise, users of location-based social networks differ in how far they are willing to travel.

Note on this version. This version omits all results on the Yelp Open Dataset, which the conference version reports. The dataset's terms of use require the data provider to review such results before they are published, and this review is pending; the results will be added in a later version. Section, table and figure numbers are unchanged, and each omission is marked where it occurs.

Figure

Fig. 1. Pairwise acceptance versus the smallest-tolerance bound (k = 3; grey u and v have tolerance 1, all others 2; in (c), non-members are faded; vertical offsets only aid legibility).

We search for latitude-consistent communities (LCCs): connected subgraphs with minimum degree at least k, containing q, and diameter in the position space bounded by the smallest member tolerance. Members can change their positions as they influence one another. Every pair in Fig. 1(a) initially accepts each other, but one equal-weight averaging round (1) separates u and v (b). Bounding the spread by the smallest tolerance preserves acceptance in the LCC of (c). Consider a platform assembling a discussion panel on a contested topic. Members adjust their positions over repeated rounds; a group selected for initial pairwise compatibility may therefore lose acceptable exchanges. This coupling complicates the search: adding a less tolerant member tightens the bound for every pair. Whether two vertices can coexist depends on the rest of the group, so pruning based on a common threshold does not apply directly.

  • Model and guarantees (Sections III and IV-A). If tolerances are the radii of the latitudes of acceptance, every interaction in a closed LCC stays accepted under bounded-confidence dynamics with personal bounds [9], [10] and any positive weights, and the group converges to consensus; if they are the distances beyond which members reject, no member of an LCC ever rejects another under SJT dynamics. Conversely, in every connected group that violates the bound, some positive weighting of the averaging makes a member refuse an interaction, and neither a slack of ε\varepsilon, nor exempting two members, nor the pairwise condition d(xu,xv)≤min⁡(θu,θv)d(x_u, x_v) \leq \min(\theta_u, \theta_v) preserves the guarantees. For members who also listen to outside

friends, we give a sufficient condition.

  • Complexity (Section IV-B). Finding a largest LCC is NP-hard even with equal tolerances in the plane and on the sphere; with the dimension as part of the input, it is not approximable within n1−ϵn^{1-\epsilon} unless P = NP, and for each fixed k≥2k \geq 2 even deciding whether an LCC exists is NP-complete; it is polynomial on a line.

  • Algorithms (Section V). LatSweep fixes the smallest tolerance τ\tau of the answer. Every member must then satisfy d(xv,xq)≤τ≤θvd(x_v, x_q) \leq \tau \leq \theta_v, which turns the coupled constraint into a sweep over survival intervals with a common threshold at each step (Fig. 2). The sweep yields BallCore-F and a greedy variant, which return only LCCs; BallCore-R, a polynomial-time (1, 2)-bicriteria approximation whose diameter factor cannot be improved in general metrics unless P = NP; and an exact branch-and-bound algorithm that refines upper bounds best-first and, if stopped early, returns the best LCC found, if any, with a proven bound on the optimum. A query-independent index shrinks the search region of all but BallCore-R.

  • Experiments (Section VI). On eight graphs with up to 1.8 billion edges, the exact algorithm proves within microseconds that most queries without an LCC have none, leaves 9 of our 3,700 efficiency queries unproven, each with an LCC of at least 0.689 times a proven upper bound, and, with only the subproblem solver exchanged, proves more queries than a reimplemented maximum- (k,r)(k, r)-core algorithm, a mixed-integer program and CP-SAT. In simulations, groups that satisfy only the pairwise condition lose accepted interactions when influence is uneven; on two location-based datasets, LCC groups show no measurable loss in co-visits against spatial communities of the same size.

The guarantee assumes a closed group; outside ties invalidate it for many real groups (Section VI-C). Our main real-data application is meetups, where positions do not change and the pairwise condition already suffices (Proposition 2(a)); these data measure what member-specific tolerances change and what enforcing the smallest-tolerance bound costs, which may include some co-visits against the pairwise condition. Simulation evaluates whether the bound protects acceptance under unknown and uneven influence in the worst case. The data do not include the longitudinal positions and tolerances needed for a behavioural test. Estimates from two parliaments, whose positions can be inferred from roll-call votes, failed the planned tolerance premise tests (Section VI-E). Once synthetic tolerances span several communities, the exact algorithm reaches the time limit on many queries with an LCC (Section VI-B). Code and processing scripts are at https://github.com/YangH-L/LACS; compared with the conference version, this report provides full proofs and an appendix of supplementary results; it omits the Yelp results of the conference version, as explained in the footnote on the first page.

References (62)