Manuscript Offprint
arXiv:2611.05951Community Search under Member-Specific Tolerances
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Yanghao Liu , Fangda Guo , Yuxuan Zhang , Xueqi Cheng
State Key Laboratory of AI Safety
Institute of Computing Technology, Chinese Academy of Sciences
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 . 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- -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 , community search identifies a cohesive subgraph containing [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.

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 , nor exempting two members, nor the pairwise condition 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 unless P = NP, and for each fixed even deciding whether an LCC exists is NP-complete; it is polynomial on a line.
-
Algorithms (Section V). LatSweep fixes the smallest tolerance of the answer. Every member must then satisfy , 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- -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.
Spatial and geo-social groups: Spatial-aware community search (SAC) [6] returns the k-core containing q whose minimum covering circle is smallest. Radius-bounded k-cores [4] must fit in a circle of given radius, and maximum co-located communities [5] keep all pairwise distances within a given threshold. Geo-social group queries [22], [23] select a group, near a rally point or within a query region, in which every member knows a given number of others, and skyline cohesive groups [24] trade social cohesion against the members' travel cost to a meeting point within everyone's reach. On road-social networks, cohesive group nearest neighbour queries [25], [26] pair a cohesive group with the meeting point that minimizes its travel distance, under one or several criteria, and multi-attributed community search [27] ranks cohesive groups by attributes with uncertain weights. LCCs replace the shared spatial bound or objective with tolerances contributed by individual members. Least-misery group recommendation scores groups through their least satisfied member [28], [29]. The least tolerant LCC member similarly bounds the group, through a hard constraint on positions.
Opinion dynamics: Averaging models repeatedly update agents to weighted averages of their neighbours' opinions [30], possibly with an anchor at their initial opinions [31]. Bounded-confidence models [9], [32] average only opinions within a confidence bound; with heterogeneous bounds, whether consensus arises depends on the bounds and the network [10], [33], and, for scalar opinions, the dynamics converge in finite
TABLE I NOTATION.
| Symbol | Meaning |
|---|---|
| social graph, | |
| metric space of positions | |
| query vertex, minimum degree | |
| position and tolerance of | |
| radii of acceptance and of rejection | |
| group, | |
| induced subgraph; neighbours of in it | |
| largest distance and smallest tolerance in | |
| OPT | size of a largest LCC (0 if none) |
| position at step ; neighbours accepted at | |
| averaging weights, bounded below by | |
| component with of the -core of | |
| subgraph of on mutually accepted edges | |
| ; survival interval of | |
| query region around | |
| threshold; candidate thresholds | |
| vertices of with ; | |
| optimum at threshold and its upper bound | |
| best set found; proven upper bound on OPT |
time if the initial opinions span at most twice the smallest bound [34]. Opinions fixed outside the group act as constant signals, for example from radical groups or charismatic leaders [35]. Models based on SJT add noncommitment and rejection [36]; bounded-confidence models have been fitted to social traces [37], and individual users' confidence intervals have been measured as the span of their neighbours' opinions [38]. We use these dynamics as a group-selection criterion: the search returns groups with guarantees about subsequent interactions (Section IV), whereas the cited studies follow an initially given population.
III. PROBLEM DEFINITION
Member-specific tolerances: Social judgment theory [8] describes how people assess positions against a personal anchor. Nearby positions are assimilated within the latitude of acceptance; distant positions are contrasted within the latitude of rejection, with noncommitment between these regions. Their widths differ across individuals. We give each vertex a position in a metric space and two radii : vertex accepts a position if , rejects it if , and is noncommittal otherwise. The same search model applies to geographic positions. In meetups (Section VI), is a user's home and estimates, from past visits, how far the user is willing to travel. Each member need only be able to reach every other member's home; condition (iii) below is therefore conservative.
Notation: Let be an undirected simple graph with . For , is the induced subgraph and the set of neighbours of in . Each vertex has a position and a tolerance ; we write and ; Table I lists the main notation.
Definition 1 (Latitude-consistent community). For a query vertex and an integer , we call a set a latitude-consistent community (LCC) when (i) ; (ii) is connected and has minimum degree at least ; and (iii) .
Choosing yields an , in which every member accepts every other member's position; yields the weaker , where no member rejects another.
Problem 1 (MAXLCC). For inputs and , return an LCC with the largest possible number of vertices. The decision problem LCC-DEC asks whether there exists an LCC containing at least vertices.
Why the minimum: Section IV shows that condition (iii) is exactly what keeps every interaction in a connected group accepted at all times, for all positive averaging weights (Proposition 2), and that in the worst case it cannot be weakened even for equal weights: neither a slack of , nor exempting two members, nor the pairwise condition preserves the guarantee (Proposition 1, Fig. 1). In a normed space, pairwise acceptance is equivalent to every member accepting every weighted average of the members' positions, which suffices while those positions stay fixed. Removing members can only decrease and increase , so condition (iii) is hereditary. Yet the condition couples three members at a time: for all . This dependence on other members prevents a fixed pairwise decomposition. For instance, and at distance 1 with tolerance 1 form a feasible pair, and so does each with a vertex midway between them with tolerance , yet violates (iii). With uniform tolerances , condition (iii) becomes the pairwise constraint of -cores [3], with distance in place of similarity, and MAXLCC asks for a maximum -core containing ; pruning for -cores relies on this fixed pairwise structure, which LatSweep (Section V) recovers by fixing the threshold.
When to require (iii): The guarantees in Section IV apply to closed groups interacting repeatedly under unknown, possibly uneven influence weights. Groups formed to work or deliberate with little outside influence approximate this setting: a platform-formed study group, a deliberative-poll panel, a project team [39] or an online deliberation group. We do not evaluate these settings. For a one-off meetup with fixed positions, the pairwise condition already suffices and permits larger groups (Section VI-C).
k-cores: For , the -core [40] of is its unique maximal subgraph with minimum degree at least , and denotes the component of this -core that contains , or the empty set if is not in the -core; peeling computes it in time [41], and we use the same notation for peeling in a spanning subgraph of . Throughout, we use the -core fact: every connected with and minimum degree at least satisfies .
For a heterogeneous information network, G can be the homogeneous graph induced by a meta-path, as for -cores [15].
IV. THEORETICAL PROPERTIES
The theory addresses two questions: which groups preserve acceptance under opinion dynamics (Section IV-A), and how difficult it is to find a largest such group or approximate its size (Section IV-B).
A. Guarantees under Opinion Dynamics
Here, positions are opinions in under any norm . A group starts from ; the graph and the tolerances are fixed, interactions follow edges of , and .
Bounded-confidence dynamics: In the network version of the Hegselmann–Krause (HK) model [9] with agent-specific bounds [10], vertex v averages the opinions of the neighbours it accepts:
where , the weights are non-negative with unit sum, and for ; equal weights give . An interaction along is accepted at time if .
Lemma 1. If every is a convex combination of , then , because, by convexity of the norm, a point set and its convex hull have the same diameter.
Theorem 1 (Consensus). Let be an with that evolves by (1) with . Then for every , (a) every interaction along every edge of is accepted, and (b) is non-increasing and , so all opinions converge to a common point. (c) With equal weights, the limit is the -weighted average of the initial opinions.
Proof. (a) Each update (1) is a convex combination, so by Lemma 1, for all and ; hence .
(b) By (a), the update matrix is row-stochastic with entries at least on the diagonal and on the edges of . Since is connected, any two vertices are joined by a walk of exactly steps when self-loops are allowed, so every entry of is at least . For two rows of , let ; the vector is 0 if and otherwise times a difference of two convex combinations of the , so its norm is at most -diam. Hence the diameter is multiplied by at most every steps. Because every later opinion remains in the convex hull of the opinions at time , the trajectories are Cauchy and share a common limit.
(c) With equal weights, is the random walk on with self-loops, whose stationary distribution satisfies .
Condition (iii) fixes the accepted interactions, so the dynamics reduce to linear averaging on [30]. Connectivity then ensures convergence; the role of k is structural cohesion. Consensus does not require condition (iii), although it suffices: heterogeneous bounded-confidence dynamics can reach consensus from much more dispersed configurations and remain only partly understood [10], [33]. Natural relaxations of (iii) do not guarantee consensus (Proposition 1). Under asynchronous updates, in which only some vertices apply (1) at each step, Theorem 1(a) and the monotonicity of still hold, and if every vertex updates at least once in every consecutive steps, applying (b) to blocks of steps gives convergence (cf. [42]). The loose rate bound in (b) serves only to establish geometric convergence.
Social-judgment dynamics: SJT adds noncommitment and rejection. Following Jager and Amblard [36], vertex v moves towards accepted neighbours, ignores noncommittal ones, and moves away from rejected ones:
(2)
where uses , , and may vary with , with ; updates may be asynchronous.
Theorem 2 (No rejection). If an H follows (2), then for all and , and never increases; consensus need not occur.
Proof. Suppose , which holds at . Then every edge satisfies , so , and the update is a convex combination; Lemma 1 gives , and induction completes the proof. Finally, split equally between positions 0 and 1 with and : this has only noncommittal cross pairs and never moves.
Proposition 1 (Tightness). Fix , and . (a) There is a connected group with minimum degree at least , diameter and uniform tolerance in which acceptance and consensus fail under (1); with , and , rejection occurs under (2) and the diameter grows. (b) There is a connected group with minimum degree at least in which every pair satisfies and every member but two satisfies , but in which acceptance and consensus fail under (1); with and , rejection occurs under (2).
Proof. (a) Split equally between positions 0 and on a line. Under (1), no cross pair is accepted, so both halves stay where they are; under (2), every cross pair is rejected, and the first update pushes the halves apart.
(b) Let . Place cliques and of vertices each at positions 0 and 2 with tolerance 2, and two adjacent vertices and at position 1 with tolerance 1, where is adjacent to all of and to all of . Every pair is within the smaller of its two tolerances, every vertex has degree at least , and only and have tolerance below . With equal weights, one update of (1) moves to , to , to and to . Then , so and no longer accept each other, and the vertices of , like those of , accept only one another. Each part therefore stays in the convex hull of its own positions at , and the two hulls are more than 1 apart; by the argument of Theorem 1(b), each part converges to its own limit. With and , the first update of (2) coincides with that of (1), after which and reject each other.
Part (b), illustrated in Fig. 1 for , explains the minimum in Definition 1: even with pairwise acceptance, exempting two members breaks the guarantees. A single member below the bound already breaks acceptance. Give one more vertex, and replace and by one vertex at position 1 with tolerance 1, adjacent to all of and to one vertex ; one update moves to and to , which are apart. However, consensus survives a single exemption: every other member accepts all its neighbours at all times, so is a root of every interaction graph, and consensus follows [42].
The counterexamples in Proposition 1 motivate a characterization for every group. Condition (iii) protects a connected group against every weighting of (1). For fixed positions, the pairwise condition suffices for every member to accept every compromise.
Proposition 2 (Characterization). Let with and . (a) Every pair satisfies if and only if every member of accepts every point of . (b) If is connected, then if and only if, for every and all weights admitted by (1), every interaction along every edge of is accepted at all times. Moreover, if and all these interactions are accepted at , then for every sufficiently small some admitted weights make a member refuse, within steps, an interaction that it accepted at .
Proof. (a) For fixed , the function is convex, so its maximum over the convex hull is attained at one of the points . Hence accepts the whole hull if and only if for all ; requiring this for every gives the pairwise condition.
(b) The proof of Theorem 1(a) requires only that each update be a convex combination, so it applies to all admitted weights and establishes the forward direction. For the converse, assume and that every interaction along an edge of is accepted at , since otherwise there is nothing to prove; let and . In a copy step along an edge , member puts weight on and spreads evenly over its other accepted neighbours and itself, while every other member puts weight on itself and spreads evenly over its accepted neighbours, or keeps weight 1 if it accepts none. Every weight on an accepted neighbour or on the member itself is at least , so these weights are admitted for every , provided that still accepts ; if it does not, an interaction accepted at has been refused. The same holds if any member refuses any neighbour during the steps below, so assume that this never happens. By Lemma 1, the diameter stays at most ; hence in a copy step moves to within of the position of , and every other member moves by at most . Copying along a path , that is, performing copy steps along in this order, therefore brings to within of where started, and moves every member outside by at most .
If some pair has , then and are not adjacent. A shortest path from to , without its last vertex , ends at a neighbour of and has length . Copying along it brings to within of , while moves by at most , so refuses at once .
Otherwise the pairwise condition holds. Let and ; then , because for all . There is a path from to that avoids , or one from to that avoids : if lies on every path from to , then every path from to continues inside the component of that contains , and is not in this component. Swapping and if necessary, copy along a path from to that avoids , and then along a shortest path from to without its last vertex ; the latter ends at a neighbour of , possibly . After these steps, is within of and within of , so once ; member refuses , which it accepted at .
Part (b) is a worst-case statement over all weightings, and its converse requires weights that may be arbitrarily uneven: in the proof, each moving member puts almost all its weight on one neighbour, whereas under equal weights, a group that violates (iii) may or may not lose an accepted interaction (Proposition 1(b)); for instance, let form a triangle in , at positions 0, 1/2 and 1 on a line, with tolerances 1, 0.6 and 1: every pair satisfies the pairwise condition and (iii) fails, but with every update is the equal-weight one, so the group meets at its centroid after one step and no interaction is ever refused. The proof requires only a connected interaction graph, so (b) also holds when all members hear one another. With , the same steps are admitted by (2), where a refusal is a rejection, so (iii) is also exactly what rules out rejection under (2) for all coefficients; this needs , since, for instance, with in the triangle above every pair is noncommittal and nobody ever moves. Section VI-C measures how often other methods' groups lose an accepted interaction under equal and uneven weights.
Open groups: When members average with accepted neighbours outside the group, condition (iii) alone no longer suffices; Proposition 3 supplies an additional sufficient condition.
Proposition 3 (Open groups). Let each also interact with its outside neighbours , whose positions stay fixed, and let every update move to a convex combination, with non-negative weights that may vary with time and state, of and the in-group and outside neighbours that accepts at time . Let be the set of outside positions accepted by some member at , and . If diam and for all , and with , then for all and , and at every time each member accepts exactly the neighbours it accepted at .
Proof. We prove by induction on that for all ; the claim holds at . Assume it holds at time and fix . If and , then by (b), so does not accept ; every other point that can average, namely , the positions of its in-group neighbours and the outside positions in , lies in the convex set , so . Any two points of are within , so at every time accepts all its in-group neighbours and all outside neighbours with positions in , and no others; by the definition of , these are exactly the neighbours it accepts at . As a point set and its convex hull have the same diameter (Lemma 1), (a) can be checked on the finite set . The argument requires neither connectivity nor positive weights nor synchronous updates, but it does require fixed outside positions.
The fixed outside neighbours are the constant signals of Hegselmann and Krause [35]; what matters is the certificate. The condition of Mirtatabatabaei and Bullo [33, Prop. 4.11], under which an isolated all-to-all group with scalar opinions reaches consensus if all members but one have bounds larger than its opinion range, permits one exemption but no outside neighbours, the reverse of Proposition 3; neither condition therefore implies the other. In our network model, two exemptions are too many by Proposition 1(b). Condition (a) of Proposition 3 alone does not suffice, even with equal weights, because members can begin to accept outside neighbours that none accepted at and drift apart, an instance of the indirect influence described in [35]. For example, let adjacent members and start at 0 and with , let have 20 outside neighbours at 0, and have 10 at and 10 at . Then , but (b) fails; under equal-weight HK, starts to accept the neighbours at after one step, and at the two members are apart and refuse each other. The argument needs outside positions to stay fixed, and open groups need not reach consensus: if has 20 outside neighbours at 0 and has 10 at 0.95, with and members at 0 and , the two members converge to and under equal weights, so the members' diameter grows from to while stays fixed. The conditions of Proposition 3 rarely hold in our data (Section VI-C).
B. Complexity
We study LCC-DEC in with the Euclidean norm and rational coordinates and tolerances; in parts (a), (b) and (f), is part of the input and we use the following embedding.
Lemma 2. Given a graph with , points with and an integer can be computed in polynomial time such that, for distinct , if and only if .
Proof. Let denote the complement of , and let denote its maximum degree. Take the least positive integer satisfying , and put . For every edge in ordered by , introduce a coordinate assigning , , and every other point the value 0. For each , introduce another private coordinates with value 1. This gives for every ; distinct points can share a non-zero coordinate only when they are adjacent in . Thus is when and 0 when . Thus takes value in the former case and in the latter, so the threshold distinguishes them.
Theorem 3 (Hardness). (a) For each fixed , LCC-DEC is NP-complete. This holds even for complete G, equal tolerances, and coordinates restricted to .
(b) For every fixed , unless P = NP, no polynomial-time algorithm can approximate MAXLCC to within a factor of .
(c) The conclusions of (a) and (b) extend to general metrics supplied as distance matrices.
(d) When m = 1, MAXLCC can be solved in time.
(e) For each fixed and , LCC-DEC remains NP-complete, also on the sphere with chord distance, even with equal tolerances.
(f) For each fixed , deciding whether an LCC exists is NP-complete, even with equal tolerances, both for distances in and in with part of the input. Hence, for each fixed , unless P = NP, no polynomial-time algorithm returns an LCC for every input that has one; in particular, MAXLCC cannot be approximated within any factor.
Proof. Feasibility can be checked by comparing squared distances and squared tolerances using rational arithmetic, so membership in NP follows directly.
(a) The reduction is from CLIQUE, which is NP-complete [43]. For an instance , add a clique of new vertices, including , and make every vertex of adjacent to every vertex of . Apply the embedding of Lemma 2 to this augmented graph, take to be complete, assign tolerance to every vertex, and set . Any -clique in gives the set , whose pairwise distances are at most and whose minimum degree in is . Conversely, every pair of vertices in an LCC has distance at most ; by
Lemma 2, these vertices form a clique in the augmented graph, and deleting K leaves a clique in F with at least c vertices.
(b) Embed itself by Lemma 2, with complete and tolerance . Checking all sets of at most vertices in time either finds a maximum clique, if its size is at most , or shows . In the latter case, apply a -approximation algorithm to each query that lies in a -clique. If belongs to a maximum clique, the corresponding optimum equals . Every LCC returned by the algorithm is a clique in , and the largest returned set therefore contains at least vertices. This gives a polynomial-time approximation for CLIQUE within ; taking would imply [44].
(c) The embedding would give irrational distances, so we bypass it: set if is an edge of the graph being embedded and for every other pair , and give every vertex tolerance 1. Any symmetric matrix with zero diagonal and off-diagonal entries in satisfies the triangle inequality, and the arguments of (a) and (b) apply unchanged.
(d) Take an optimal solution and define and . The inequality places inside the window . For each pair , evaluate , where . Every non-empty is an LCC: its positions occupy a window of length , and each tolerance is at least . The -core fact gives , establishing optimality of the largest . The enumeration considers pairs and takes time for each.
(e) We reduce from 3-SAT [43] with variables , , and clauses . Let and , a rational point of the unit circle at angle . Place a clique of vertices, including , at the origin; for each , place copies of the literal at and copies of at ; and place one vertex per clause at the origin. Every copy is adjacent to all of , and each clause vertex is adjacent to all copies of its literals. Copies of and are at distance 2; every other pair is closer than . Indeed, pairs involving the origin and pairs of copies of the same literal are at distance at most 1. Copies of literals of distinct variables and are at distance or , where ; both are at most , where is the smallest difference between distinct angles . Since the derivative of 2 is at least 1 on and consecutive values differ by , we have ; with and , this gives . With tolerance for every vertex, an LCC contains copies of at most one literal per variable, and therefore at most vertices. An LCC with vertices contains , all copies of one literal per variable, and every clause vertex; each clause vertex then needs neighbours, that is, a chosen literal, so the chosen literals satisfy the formula. Conversely, the true literals of a satisfying assignment, together with and all clause vertices, form an LCC with vertices. On the sphere with chord distance, put the copies on the equator and the other vertices at the north
pole, at distance from every copy; the argument is unchanged. Padding the coordinates with zeros extends the planar construction to every fixed .
(f) Membership in NP is as above. We reduce from MULTI-COLORED CLIQUE: given a graph whose vertex set is partitioned into classes with , decide whether some are pairwise adjacent. It is NP-complete, since an instance of CLIQUE with reduces to it by taking for and joining and if and only if and . Add an original vertex and arrange the classes on a ring, so that the ring neighbours of are and , with . Replace every original by copies, let be a copy of , and join two copies in if and only if their originals lie in ring-neighbouring classes. Call two originals compatible if they are equal, if one of them is , or if they lie in different classes and are adjacent in . Put copies of compatible originals at distance 1 and all other pairs at distance 2, with tolerance 1 for every vertex; for Euclidean distances, embed the compatibility graph on by Lemma 2, put every copy at the point of its original, and give every vertex tolerance . In both cases, a set satisfies (iii) if and only if its members are copies of pairwise compatible originals. If form a multicolored clique, all copies of form an LCC: the subgraph they induce is connected, each of its vertices has neighbours in it, and their originals are pairwise compatible. Conversely, let be an LCC. Distinct originals in the same class are incompatible, so the members of among the copies of a class are copies of a single original. The neighbours in of a member therefore lie in its two ring-neighbouring classes, at most in each, and minimum degree forces both of these classes to contribute members. Starting from , whose ring neighbours are and , and following the ring, every class contributes copies of some ; these originals are pairwise compatible and lie in different classes, so they form a multicolored clique. Finally, if a polynomial-time algorithm returned an LCC for every input that has one, checking whether its output is an LCC would decide existence in polynomial time.
Parts (a) and (b) transfer the hardness of CLIQUE through Lemma 2, a simple instance of representing graphs by distances as in the study of sphericity [45], and (c) through distances in ; (e) and (f) require new constructions. With uniform tolerances, (a) and (e) also show that the query version of the -core problem [3] is NP-hard under Euclidean distance, even in the plane, and by (f), for each fixed , even deciding whether q lies in any -core is NP-complete when the dimension is part of the input. The assumption that k is fixed matters: if k is part of the input, the construction of (a) with and k = c already makes existence NP-complete. Parts (b) and (f) motivate relaxing the diameter, but not the size, in Section V-B: by (f), unless P = NP, every polynomial-time algorithm that returns only LCCs, such as

Fig. 2. The LatSweep framework: (a) survival intervals and the candidates (dots) at two thresholds; (b) index, query pipeline and the bounds that the sweep refines.
BallCore-F and the greedy variant, returns nothing on some inputs that have an LCC, whereas BallCore-R is empty only if no LCC exists. Part (b) is not subsumed by (f): it also holds for k = 1, and its proof gives the same bound even on inputs with an LCC that is easy to find, a -clique of F containing q.
Open cases: In fixed dimension, it remains open whether MAXLCC is hard to approximate and whether, for , deciding the existence of an LCC is hard; on the sphere with chord distance, as in our meetup data, only (e) applies. If G is complete, Lemma 4 reduces MAXLCC to finding, for each candidate threshold, a maximum clique containing q in a unit ball graph. This is polynomial in the plane [46], even with member-specific tolerances, so the hardness in (e) stems from the graph; in dimension 4 and above, it is NP-hard even for complete G [47], while these results leave dimension 3 unresolved.
V. THE LATSWEEP FRAMEWORK
LatSweep makes the coupled constraint (iii) searchable by fixing the smallest tolerance . Each value yields a fixed-threshold subproblem in a reduced region around (Fig. 2). The sweep yields four algorithms: BallCore-F and a greedy variant return only LCCs, BallCore-R is a polynomial-time (1,2)-bicriteria approximation, and LatSweep-Exact (Exact) is exact and, if stopped early, returns the best LCC found, if any, with an upper bound on the optimum. For a fixed threshold, the subproblem is a search for a maximum -core containing [3], which we solve with known tools: peeling, filtering of conflicts (pairs farther apart than the threshold) and colouring bounds [48]. Survival intervals provide the reduction despite non-monotone candidate sets. Best-first refinement then allocates search across thresholds and supports early stopping with a certificate; a compatibility index reduces the search region. We write and let OPT be the size of a largest LCC, or 0 if none exists; all results hold in arbitrary metric spaces.
A. Survival Intervals and Candidate Reduction
Lemma 3 (Sound reductions). Let be an LCC and . (a) Every satisfies , and hence
. (b) Let with . Then ; hence lies in the component of the -core of that contains .
Proof. (a) As , we have , and . (b) Every edge inside satisfies ; the -core fact applied to completes the proof.
Lemma 3(a) assigns each vertex a survival interval for the smallest tolerance of an LCC containing it. A vertex with an empty interval, such as in Fig. 2(a), cannot belong to an LCC. The core numbers of form a compatibility index; it is independent of the query and is built once per tolerance assignment (say, for and for ) in time, where is the cost of one distance evaluation. For a query and a graph , the query region is obtained by a traversal from along edges of that visits only vertices with a non-empty survival interval and core number at least in . By Lemma 3, every LCC lies in for either choice of , and building inspects only and its neighbours; BallCore-R uses , and hence the core numbers of rather than the index, all other variants .
Candidate thresholds: For , let and let , peeled in . Let , and let be the largest size of a connected set with , minimum degree at least and .
Lemma 4. , and for all .
Proof. Every set counted in has all tolerances at least and is therefore an LCC. Conversely, an optimal has , so , and by Lemma 3(a); thus is counted in . The bound is the -core fact.
Best-first sweep: Algorithm 1 keeps an upper bound on for every threshold and repeatedly refines the bound of the threshold with the largest one, in stages of increasing cost (Fig. 2(b)): the interval count , obtained for all thresholds by one sort of the interval end points; the size of the peeled set; for Exact, the bound that branch and bound computes at its root (Section V-C); and finally the search itself, which settles . The root bound holds only for solutions larger than the incumbent , which suffices because never shrinks. By Lemma 4, no threshold can improve the incumbent once every remaining bound is at most . Candidate count alone can prioritize expensive subproblems with small optima. The current bound incorporates the refinements beyond ; the ablation in Section VI-B tests the benefit of this ordering. Unlike with a uniform radius, is not monotone in : a larger admits vertices farther from but drops those with ; in Fig. 2(a), from to , loses and gains . The sort takes time and one peeling , where and .
Algorithm 1 LatSweep
Require: , query , integer , variant
1: for , else 1; for , else
2: query region in , with for Lemma 3
3: for
4: ; for
5: , or for the larger of the BallCore-F and greedy results
6: and do
7: a threshold in with the largest
8: has not been peeled then
9: in ;
10:
11: then
12:
13: has no root bound yet then
14: Section V-C else
15:
16: then
17: the threshold is settled
18:
B. BallCore: Feasible and Bicriteria Solutions
Feasible solutions: Variant F doubles the left end points of the survival intervals ( in Algorithm 1); it is fast but conservative, since it admits only vertices within of . The greedy variant starts from , peeled in , at each of the 20 thresholds with the largest . It repeatedly deletes the vertex other than with the most conflicts, that is, partners at distance greater than , and re-peels after each deletion until no conflict remains; if peeling removes , the threshold yields nothing.
Proposition 4 (Feasibility). Every non-empty output of BallCore-F or of the greedy variant is an LCC.
Proof. By peeling, each output contains , is connected, and has minimum degree at least and tolerances at least . In BallCore-F, any two members satisfy ; in the greedy output, no pair conflicts.
BallCore-R: Variant R, for relaxed, omits the doubling and uses the largest peeled set as a bicriteria approximation. It peels in , so that is the largest connected -core containing whose members lie within distance of and have tolerance at least . Since can only grow between consecutive values of , maximizing over solves exactly the relaxation of MAXLCC that replaces (iii) by the requirement that hold for all members and some ; every LCC satisfies this relaxation by Lemma 3(a).
Theorem 4 (Bicriteria approximation). Let maximize over , and let . Then ; in particular, is empty only if no LCC exists. If is non-empty, it contains , is connected, has minimum degree at least , and satisfies . Given the region, BallCore-R finds in time.
Proof. By the proof of Lemma 4 and the -core fact, an optimal satisfies for some , so . For any , we have , and every tolerance in is at least ; hence . Algorithm 1 stops only when every remaining threshold has and therefore cannot improve .
The factor 2 is attained: place at 0 and vertices at each of and on a line, take complete, and give every vertex tolerance . Then contains all vertices and has diameter , whereas an optimum consists of and the vertices on one side. It is also best possible in general metrics: with distances in as in Theorem 3(c), every set of diameter below 2 is a clique, so unless , no polynomial-time algorithm achieves size ratio with diameter factor . The role of BallCore-R is to bound OPT and certify absence when its output is empty. These uses require a completed sweep, and its output has none of the dynamical guarantees of Section IV.
C. LatSweep-Exact
By Lemma 4, an optimal LCC is found by solving, at every whose bound exceeds the incumbent, the fixed-threshold subproblem on : two vertices conflict if their distance exceeds , and the goal is a largest conflict-free subset containing that is connected and has minimum degree at least . The exact variant peels in , which is sparser and by Lemma 3(b) loses no solution, and initializes the incumbent with the BallCore-F and greedy solutions, which are feasible by Proposition 4.
Branch and bound: BRANCHANDBOUND() returns a largest feasible subset of if it has more than vertices, and the empty set otherwise. A search node consists of selected vertices and undecided vertices , with no conflicts within or between and ; the root has and , which satisfies this invariant because for every . Let denote the size of the incumbent. Each node first applies rules (1) and (2) of Lemma 5 to reduce . If no conflict remains in , then is feasible and optimal for the subtree; otherwise, the node tests rule (3) and branches on a vertex with the most conflicts in , either deleting or moving it to and deleting its conflicting partners from . Together, the two branches retain every solution in the subtree, and both maintain the invariant. The root bound used by Algorithm 1 is at the root after rules (1) and (2), where is the colour count of rule (3); by Lemma 5, no feasible subset of with more than vertices exceeds it. Rules (2) and (3) adapt the degree and colouring bounds of maximum-clique search [48].
Lemma 5 (Sound pruning). The rules below preserve every feasible solution with more than b vertices in the current node's subtree. (1) Delete edges joining conflicting vertices, peel down to the component containing in its -core, and prune the node whenever this removes a vertex of . (2) Prune the node when . If this test fails, examine any vertex having fewer than conflict-free partners in : delete it if it belongs to , or prune the node if it belongs to . Apply rules (1) and (2) alternately until both leave unchanged. (3) Greedily colour the vertices of , in increasing order of their number of conflicts in , so that every colour class is a set of pairwise conflicting vertices; prune when plus the colour count does not exceed .
Proof. Take any feasible satisfying and . (1) Since contains no conflicting pair, none of the deleted edges belongs to ; the -core fact therefore ensures that remains after peeling. (2) Every has the remaining vertices of as conflict-free partners, and all are contained in . (3) is pairwise conflict-free, so it can contain at most one vertex from each colour class.
Colouring vertices with few conflicts first tends to use fewer colours than an arbitrary order [48] and gives a smaller additional speed-up in our experiments. Conflicts are stored as bitsets over , which takes time and space per threshold. The reductions shrink the region by orders of magnitude for most evaluated queries (Section VI). The remaining search is still exponential in the worst case, as expected from Theorem 3.
Time limits and certificates: Our implementation checks a time limit at every search node and does not search sets with more than 3,000 vertices; such thresholds keep their bound, and root bounds are computed only for sets of up to 20,000 vertices, which Greedy also skips if larger. When it stops before every threshold is settled, a pass outside the time limit, of at most 5 s or 10% of the limit, whichever is larger, tightens the bounds of the unsettled thresholds ; it then returns the incumbent with . Every answer is thus proven optimal (, which includes proven empty answers), feasible with a gap (), or undecided ( and ).
VI. EXPERIMENTS
The experiments test search efficiency and solver effectiveness (Section VI-B), persistent acceptance in simulated dynamics (Section VI-C), and the effects of personal tolerances in applications with observed positions: meetups (Section VI-D) and two parliaments (Section VI-E). The parliament analyses follow plans specified before results were available. The size-controlled Gowalla and Brightkite comparisons are post hoc. Shares are compared in percentage points (pp); brackets denote 95% bootstrap confidence intervals (CIs). Between-method CIs resample queries 2,000 times with the two groups paired within each query. Groups may overlap across queries; the CIs therefore describe the sampled queries within each graph. Appendix A gives the full tables of all experiments.
A. Setup
Graphs and positions: Gowalla and Brightkite [49] provide friendships and time-stamped check-ins, which we split by time into a training (70%), a validation (10%) and a test period (20%). We retain users with at least 10 training check-ins and the friendships between them. The home of a user is the median check-in position in the user's most frequent cell of about 25 km, and is the median distance of the user's training check-ins from home, at least 1 km. Distances are chord lengths between Earth-centred coordinates, within 0.1% of great-circle distances below 300 km. DBLP, YouTube, LiveJournal, Orkut and Friendster [50], together with Pokec [51], lack positions. For these SNAP graphs [52], we generate community-aligned positions. Label propagation [53] with a size cap forms groups of at most 1,000 vertices, whose members scatter with unit Gaussian spread in around centres about eight times the within-group scale apart. Tolerances are with standard normal and , where is the smallest scale, on a grid refined by bisection, at which Exact (5 s limit per query) finds LCCs with a median of at least 10 members for 30 calibration queries, or the largest scale of the grid if none does (YouTube, and Friendster on a coarser grid); ranges from 1.25 on Orkut to 3 on YouTube. Synthetic positions test efficiency and dynamics; the application analyses use observed positions.
Queries and algorithms: Efficiency queries are drawn at random from the -core of (on synthetic positions, from groups of at least 20 members), 50 per setting. The default setting (, all vertices, and the calibrated scale) occurs in every parameter sweep on Gowalla, Brightkite, LiveJournal and Orkut, whose disjoint samples we pool into 200 queries per graph (150 on Gowalla and Brightkite, which have no dimension sweep); the other four graphs use only the default setting, with 200 queries each. We run Exact (with a time limit of 60 s), the greedy variant (Greedy), BallCore-F and BallCore-R. The connected -core component of and a greedy -core search with the median tolerance as radius serve as references; on Friendster, the former was timed in a separate run of the same code on the same queries. All algorithms we time are written in C++ (g++ 11.4, -O3 -march=native) and run single-threaded on an Intel Xeon Gold 6530 with 64 GB of memory; a two-pass loader converts Friendster's edge list in 13 minutes. Query times exclude loading the graph, building the index and the bound pass after a time limit (Section V-C), which took at most 4 s on our efficiency queries.
Baselines: The baselines separate the effects of the LCC constraint, personal tolerances and structural cohesion; each dynamics or application analysis uses the relevant subset. The largest group satisfying the pairwise condition (pairwise) is NP-hard to find by the proof of Theorem 3(a), since the condition coincides with (iii) under equal tolerances; our branch and bound solves it on the fixed conflict graph in which and conflict if , with a limit of 60 s (10 s in the heterogeneity sweep, where Exact keeps 60 s). Edge-accept is the k-core on the edges accepted by both endpoints. The baselines that ignore tolerances are -cores at the LCC's own threshold (an oracle baseline, as is known only after the search) and at the median tolerance (global); SAC [6] in its AppInc approximation, the connected k-core containing q in the smallest ball centred at q that holds one, and size-matched SAC, the k-core in the smallest such ball whose k-core has at least the LCC's size, which may therefore be larger; a random connected group of the LCC's size; and the k-core component.
B. Efficiency
Queries with and without an LCC: At the default setting, most queries without an LCC are settled before any search: the reductions in Lemma 3 eliminate every candidate for 74–100% of them, and Exact certifies absence in a median of at most 4.7 µs and a maximum of 0.81 s. Between 13% (Brightkite) and 57% (DBLP) of the queries have an LCC, and Table II reports them separately: Exact takes a median of 0.07 ms (Brightkite) to 861 ms (Pokec), and it proves optimality on all but 4 queries on Pokec and 3 on Friendster, which reach the 60 s limit (column Unproven). Extracting q's k-core component, which ignores positions and tolerances, serves as a reference (median time in Table II): on the seven graphs where it ran alongside Exact, Exact is faster on 70% (Pokec) to 99% (Brightkite) of the default queries and on 41–97% of those with an LCC; on Friendster, it was timed in a separate run (median 70.5 s). For queries with an LCC, Greedy finds one on 77–100%. On queries with a proven optimum, its mean size relative to the optimum is 0.62–0.98, assigning 0 when it finds none. On LiveJournal, Orkut and Pokec, BallCore-F finds an LCC for only 4–6% of queries that have one. BallCore-R is evaluated as an upper bound because its output need not be an LCC. On the four largest graphs, at most 3% of its non-empty outputs satisfy (iii), and its sets have a median size of 1.3–2.0 times the optimum; the greedy -core search returns no LCC there.
Unproven queries: Of the 3,700 queries across all graphs and settings, 9 remain unproven by Exact: 2 among the 2,900 parameter-sweep queries and 7 among the 800 queries on the other four graphs. Each unproven query has a returned LCC of at least 0.689 times a proven upper bound on OPT (Section V-C): 0.955 and 0.982 on LiveJournal and Orkut, and 0.689–0.939 on Pokec and Friendster. These queries have 560–918 candidate vertices, and every efficiency query has at most 1,502; the size caps of Section V-C therefore never apply (Table XIV).
Scalability: On Friendster, with 65.6 million vertices and 1.8 billion edges, Exact takes 1.9 s on average, with a median of 0.9 ms and a 90th percentile of 2.0 s, and it proves 98.5% of the queries; on the queries with an LCC, its median is 352 ms and its 90th percentile (p90 in Table II) 7.9 s, whereas extracting q's k-core component takes a median of 70.5 s. The hardest graph is Pokec (median 861 ms, p90 21.6 s for queries with an LCC). The graph keeps 10–61% of the edges; the index is built once per tolerance assignment in 5 ms (Brightkite) to 9.7 s (Orkut), and in 4.7 minutes on Friendster.
Ablation and parameters: On the 50 queries of the sample on LiveJournal and Orkut, Exact solves every query within the limit; sweeping in non-increasing order of instead of best-first (count order) leaves 6% and 8% unproven, colouring in index order instead of by conflicts 2% each, and dropping rule (3) of Lemma 5 12% each. Without the index, the median query region on LiveJournal grows from 7 to 29 vertices and the median time from 0.07 to 0.48 ms; without any reductions or pruning, every query processes 's entire k-core component (2.7 and 3.0 million vertices), and 12% and 14% of the queries reach the limit. Across , vertex samples of 25–100% and dimensions, the median time stays below 0.5 ms on LiveJournal and 19 ms on Orkut, and no query reaches the limit. The tolerance scale matters most: at half the calibrated , almost no LCC exists (0% and 4% of the queries); at twice and three times the calibrated , most queries have one (68–88%), and Exact leaves one query unproven on each graph at twice the calibrated .
Solver comparison: In a common Python framework with the count-order sweep, and with only the solver of the fixed-threshold subproblem exchanged, our branch and bound proves 96.5% of 200 default queries per graph on LiveJournal and Orkut, against 72.5–90.5% for the other solvers (Table III, which also gives the shares among the queries with an LCC found by some solver), and it proves every query that any of them proves; all solvers agree on every proven optimum. We also fix the reductions, the cap on searched sets, the time limit of 60 s and the initial incumbent; the alternatives are our reimplementation of AdvMax, the maximum -core algorithm of Zhang et al. [3], adapted to contain q and run with its own and with a simple branching order; a mixed-integer program with flow-based connectivity solved by HiGHS [54]; and the same model in CP-SAT [55]. All solvers, including a Python reimplementation of our branch and bound, run single-threaded; 150 of the queries also appear in Table II, and only relative times are meaningful. On hard queries taking our solver at least 100 ms and proven by both solvers (12–28 per pair), other solvers' median slowdown factors are 5.7 to 175; on queries of 1–100 ms, the AdvMax reimplementations match our branch and bound (median ratios 0.93–1.05), and below 1 ms the others are about twice as fast, a difference of microseconds.
Against a single threshold: Once the index is built, sweeping personal tolerances costs no more per query than the usual single-threshold search: on the 200 queries of Table III, the maximum -core containing q, computed by our engine at the median tolerance, times out on 71 queries on Orkut and 19 on LiveJournal, where the sweep proves all 200; at the LCC's own , run on the 115 and 95 queries with an LCC, it times out on 37 and 16. For queries with an LCC, the sweep is faster on 92–94% on Orkut (median time ratios 0.065 and 0.135), and on LiveJournal, where it answers most of them in under 1 ms, the two searches take
TABLE II EXACT AND GREEDY AT THE DEFAULT SETTING (; TIMES IN MS UNLESS MARKED).
| Graph | |V| | |E| | With LCC | No LCC | LCC exists | Greedy | k-core | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Median (µs) | Median | p90 | Unproven | Finds | Size | |||||||
| Gowalla | 56 K | 222 K | 16% | 0.3 | 0.26 | 27 | 0 | 100% | 0.98 | 2.2 | ||
| Brightkite | 24 K | 108 K | 13% | 0.2 | 0.07 | 0.41 | 0 | 95% | 0.95 | 1.1 | ||
| DBLP | 317 K | 1.0 M | 57% | 0.9 | 0.14 | 5.4 | 0 | 96% | 0.94 | 22 | ||
| YouTube | 1.1 M | 3.0 M | 23% | 2.3 | 31 | 349 | 0 | 93% | 0.90 | 41 | ||
| Pokec | 1.6 M | 22.3 M | 52% | 3.3 | 861 | 21.6 s | 4 | 77% | 0.62 | 373 | ||
| LiveJournal | 4.0 M | 34.7 M | 50% | 3.4 | 6.0 | 1.9 s | 0 | 90% | 0.79 | 630 | ||
| Orkut | 3.1 M | 117.2 M | 55% | 4.7 | 200 | 3.8 s | 0 | 84% | 0.68 | 1.6 s | ||
| Friendster | 65.6 M | 1.81 B | 55% | 0.4 | 352 | 7.9 s | 3 | 89% | 0.77 | 70.5 s | ||
TABLE III SOLVERS IN THE COUNT-ORDER SWEEP: QUERIES PROVEN OPTIMAL (%) AND MEDIAN SLOWDOWN AGAINST OURS ON HARD QUERIES.
| Solver | Proven | Proven, LCC | Slowdown | |||
|---|---|---|---|---|---|---|
| LJ | Ork. | LJ | Ork. | LJ | Ork. | |
| Branch and bound (ours) | 96.5 | 96.5 | 92.6 | 93.9 | 1 | 1 |
| AdvMax, simple branching | 90.5 | 80.5 | 80.0 | 66.1 | 5.7 | 7.2 |
| AdvMax | 89.5 | 76.5 | 77.9 | 59.1 | 14.0 | 14.6 |
| MILP (HiGHS) | 90.5 | 80.0 | 80.0 | 65.2 | 26.7 | 21.2 |
| CP-SAT | 86.0 | 72.5 | 70.5 | 52.2 | 175 | 45.0 |
similar times (median ratios 0.86–0.89 with a 1 ms floor); query times again exclude the index, which only the sweep needs and which would dominate on LiveJournal if amortized over 200 queries (Table XIII). At one threshold, the candidate region ignores the personal tolerances, and the single-threshold answers satisfy (iii) on at most 4.2% of the queries.
Heterogeneity: With equal tolerances (), the LCC coincides with the -core at the same threshold on all 220 queries of LiveJournal and Orkut on which Exact and the exact -core and pairwise searches finish; with one threshold to sweep, Exact (count order) reaches its limit on 0.5% and 45% of the 200 queries per graph, against 14% and 26.5% at and 4% and 7% at (Table X). From on, -cores at the LCC's threshold satisfy (iii) on at most 9% of the queries, and 12–65% of their members face another member beyond their own tolerance.
Tolerance scale and the proven share: Exact's proven share drops once tolerances let LCCs span several communities. The synthetic scales were calibrated to yield LCCs with a median of at least 10 members. Most friends lie in different communities, so tolerances of (Orkut) or (LiveJournal) times the median distance between friends let LCCs span several communities. In these settings, Exact reaches the limit on 35–99% of the queries with an LCC (0–1.7% stop at a cap), with loose bounds (median solution-to-bound ratios of 0.03–7.6%); at , it proves only 64% (LiveJournal) and 20% (Orkut) of them, and for and 2, 100%, 100%, 64%, 15% and 3% on LiveJournal and 100%, 51%, 20%, 3% and 0.6% on Orkut (Table XI). On queries drawn from the whole k-core, it
TABLE IV GROUPS (%) THAT LOSE AN INTERACTION ACCEPTED AT THE START, ON (G, B, L, O: GOWALLA, BRIGHTKITE, LIVEJOURNAL, ORKUT).
| Method | Equal | Concentrated | Gossip | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G | B | L | O | G | B | L | O | G | B | L | O | |
| LCC (Exact) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Pairwise | 0 | 0 | 0 | 0 | 40 | 33 | 32 | 40 | 17 | 11 | 3 | 7 |
| -core at | 15 | 17 | 4 | 13 | 41 | 44 | 91 | 97 | 34 | 40 | 69 | 85 |
| Size-matched SAC | 5 | 8 | 1 | 2 | 52 | 56 | 89 | 98 | 39 | 40 | 63 | 86 |
proves all. Cap and time-limit ablations test why the proven share drops (Section V-C): at on both graphs and on Orkut, raising the cap on searched sets to 20,000 or 50,000 or the root-bound cap to 100,000 changes the proven share by at most +1.1 pp, letting Greedy use all thresholds lowers it by up to 3.3 pp, and a limit of 300 s proves only 0–9% of the remaining queries (Table XII). On Orkut, the queries with an LCC have a median of 8,360 candidate vertices at and 210,146 at , whereas no efficiency query has more than 1,502; on LiveJournal at , the median is 1,218 (Section A-E).
C. Dynamics on Returned Groups
We run the dynamics of Section IV on the groups returned by each method for queries with an LCC (a random 1,000 of the meetup queries of Section VI-D on Gowalla, all 462 on Brightkite, and the 95 and 115 default queries of Table III on LiveJournal and Orkut; for pairwise, also the 3, 2, 12 and 14 groups of queries without an LCC). Interactions follow the edges of for at most 300 steps. We test whether any initially accepted interaction is later refused. In addition to equal-weight HK (1), the variants in Table IV draw each member's weights from a Dirichlet distribution with , which concentrates them on a few neighbours, or let random adjacent pairs move towards each other (Deffuant–Weisbuch gossip [32]); randomized variants run 10 times, and a group counts if any run loses an interaction.
Closed groups: No group satisfying (iii) loses an accepted interaction in 83,594 group-variant pairs across 11 variants, including complete interaction graphs, as Theorem 1 predicts. Under SJT dynamics (2), none of 15,392 shows a new rejection. The zero counts check the implementation against the theorem; the other rows of Table IV compare groups without its guarantee. Even with equal weights, groups found without tolerances lose accepted interactions ((k, r)-cores at : 4–17%); this occurs much more often with uneven influence (34–98%). With equal weights, pairwise groups never lose an accepted interaction, although 62–98% violate (iii) and fall outside Theorem 1. Under gossip, 3–17% lose one, as do 32–40% under concentrated weights. Usually a single pair is affected (median refused-interaction share at most 0.3%). On Gowalla and Brightkite with concentrated weights, refusal occurs mostly in the first step, and acceptance resumes in about 99% of cases; in post hoc counts, the refuser is the least tolerant member or one of the three least tolerant in 73% and 94% of the refusals, and the LCC of the same query excludes the refuser, the refused member or both in 84% and 82%, while these pairwise groups have a median of 22.5 and 5 members outside the LCC (Section A-B). Consensus is about as frequent in these groups as in LCC groups. Per run rather than per group, pairwise groups lose an interaction in 1–5% of the runs under gossip and 5–13% under concentrated weights, against 23–67% and 32–90% for -cores at and size-matched SAC groups. If the tolerances that drive the dynamics deviate from those used in the search by a factor with standard normal , 0–3.5% of the LCC groups lose an interaction, against 0.9–4.1% of the pairwise groups and 25–38% of the -cores at .
LCC or pairwise: The LCC bound trades group size for robustness to uneven influence. Pairwise groups are at least as large by definition, since every LCC satisfies the pairwise condition: where both are proven optimal (Table VIII), the pairwise group is larger for 60%, 61%, 93% and 97% of the queries (G, B, L, O; median per-query size ratio 1.08–1.52). In exchange, LCC groups lose no accepted interaction in Table IV, whereas pairwise groups do under uneven influence, in few runs and usually for one pair at a time. This is the distinction drawn in Section III: the pairwise condition suffices when positions remain fixed (Proposition 2(a)), as in a one-off meetup, whereas for groups that interact repeatedly with unknown weights, only (iii) guarantees acceptance, as a worst case over weights rather than a prediction for typical ones.
Open groups: We add outside influence to test the closed-group assumption. When members average with accepted outside neighbours at fixed positions, Proposition 3 preserves acceptance under conditions (a) and (b). Only 4.6% and 2.6% of LCC groups on Gowalla and Brightkite meet these conditions, mainly because accepted outside friends extend beyond . When each accepted outside friend has weight , against weight 1 for the member itself and for each accepted group neighbour, already at , 34% and 23% of the LCC groups lose an interaction accepted at the start, and at , 65% and 62%; no group that satisfies the conditions ever does. In an exploratory comparison on these two datasets, LCC groups lose an interaction less often than both size-matched SAC groups (by 3.6–16.9 pp) and pairwise groups (by 2–7 pp) at every , but not

Fig. 3. LCC minus size-matched SAC in co-visit shares (pp, 95% CIs): raw, at equal size with other members (a), and size-adjusted (b, for pairs only).
on Congress (Section VI-E); on the synthetic graphs, where accepted outside friends lie in the same community, no LCC group loses one even at . The loss is small and occurs early, within two steps, and affects a median 0.4–12% of the initially accepted interactions (Table XIX); consensus is rare for open groups of every method (at most 5.3%).
D. Meetups: What Member-Specific Tolerances Change
Here denotes a travel radius. For a meetup, each member need only be able to reach every other member's home, as required by the pairwise condition in Section III. Condition (iii) is stricter, so these data measure what member-specific tolerances change and what enforcing (iii) costs, not the dynamics of Section IV. Results on the Yelp Open Dataset [56], on which we replicate this application, are omitted from this version (see the footnote on the first page). Two users co-visit if they check in at the same venue on the same day. Homes, tolerances and design choices use only the training and validation periods. Every test-active user in the -core is a query, with : 15,829 and 5,260 queries, of which 2,469 and 462 have an LCC (median 16 and 10 members).
Tolerance violations: Groups found without tolerances leave many members with another member's home beyond their estimated travel radius (Gowalla, Brightkite; groups of at most 3,000 members): only 7% and 2% of the members of SAC groups, 29% and 42% of those of global -cores, and 65% and 72% of those of -cores at have every home within their radius, against all members of LCC and pairwise groups. Condition (iii) is stricter: on the Gowalla queries with an LCC, it holds for 39% of the pairwise groups, 57% of the -cores at and 33% of the size-matched SAC groups, which are larger (median 22, 27 and 22 members, against 16).
Co-visits: Size-controlled comparisons test whether the tolerance constraint reduces co-visits relative to spatial communities of the same size; no loss is detected. Where both groups exist, LCC groups have a higher share of co-visiting member pairs than size-matched SAC on both datasets, mainly owing to size (Fig. 3 and Table XV). Where SAC groups have the LCC's size but different members (a; 610 and 108 queries), and at equal size in a regression of the difference on the log size ratio (b), no difference is measurable under a rule requiring both CIs above 0 for an advantage: both CIs contain 0 on Gowalla and Brightkite. The CIs of (a) and (b) exclude losses of more than about 0.25 and 0.5 pp. The secondary measure counts members who co-visit with anyone in the group; at equal size it favours LCC groups on Brightkite, but not Gowalla. Against -cores at , LCC groups are not measurably ahead at equal size on either dataset. Across and tolerances at the 70th and 90th percentiles, the raw differences against size-matched SAC and -cores at retain their sign on both datasets (as unpaired means). Within tolerance-agnostic groups, whether members who can reach everyone co-visit more depends on the dataset and the baseline once eccentricity and activity are controlled for.
Against pairwise groups: Condition (iii) may cost some co-visits relative to the pairwise condition, although size cannot be held fixed here: on Gowalla and Brightkite, the two groups are identical for 38% of the queries, and on the 60% and 61% where the pairwise group is larger, its member pairs co-visit less often (LCC minus pairwise +1.49 pp [1.08, 1.95] and +1.77 pp [1.12, 2.50]). The size-adjusted difference (b) is nevertheless -0.85 pp [-1.35, -0.37] on Gowalla and -0.29 pp [-0.69, 0.11] on Brightkite; as equal-size groups are almost always identical, (b) extrapolates here (Section A-A).
An empty LCC: The absence of an LCC usually reflects a constraint already imposed by accepted friendship edges. An LCC is absent for most queries (84.4% and 91.2%), but for 95% and 97% of these, even the k-core of q's component restricted to friendships whose two ends accept each other is empty, so q has no k connected friends who accept one another; only 1.8% and 0.6% have pairwise groups but no LCC (Table XVII). An empty answer thus usually tells a user that q lacks such friends, which only a smaller k or wider tolerances could change, and tripling every tolerance gives an LCC to only 22% and 16% of these queries; conversely, shrinking every tolerance by 20% keeps an LCC for 80% of the queries that have one on both datasets, at a median 82% and 89% of its size. On Gowalla and Brightkite, an empty LCC is informative: SAC groups co-visit more when an LCC exists, by +4.1 pp [3.4, 4.9] and +3.1 pp [1.9, 4.5] in a post hoc regression on log size, and global -cores show the same direction (+0.74 pp [0.09, 1.42] and +1.12 pp [-0.35, 2.51] without size adjustment). Without size adjustment, the share of SAC members who co-visit with anyone in the group is also higher when an LCC exists (+0.8 and +5.4 pp). On both datasets, an empty answer thus marks queries lacking a cohesive group satisfying (iii), for which groups found without tolerances also tend to meet less.
E. Positions from Votes: Two Parliaments
Opinion positions are rarely observed alongside a network. We illustrate the method using the 474 members of the 117th U.S. Congress, then repeat the main analyses on the European Parliament. Positions are the first dimension of DW-NOMINATE [57], [58], estimated from roll-call votes; is the median distance from v to the sponsors of the bills that v co-sponsored from January 2021 to February 8, 2022 [59] (median 0.145, floor 0.02, which no member reaches); and G joins members who retweeted, quoted, replied to or mentioned each other on Twitter between February 9 and June 9, 2022 [60], [61] (10,188 edges). Positions derive from votes and tolerances from co-sponsorship, rather than measured attitudes. With strong party discipline in Congress,
TABLE V TOLERANCE VIOLATIONS IN CONGRESS GROUPS ( QUERIES).
| Method | (iii) holds | Members | Pairs |
|---|---|---|---|
| LCC (Exact, Greedy, BallCore-F) | 100 | 0 | 0 |
| Pairwise | 0.7 | 0 | 0 |
| -core at | 15.6 | 4.9 | 1.3 |
| Size-matched SAC | 2.2 | 8.2 | 1.5 |
| SAC | 87.1 | 14.3 | 14.2 |
| Global -core | 1.7 | 56.7 | 19.1 |
| BallCore-R | 0.9 | 49.6 | 12.9 |
| Random, k-core, edge-accept | 0 | 100 | 71.6–77.4 |
the results concern only this setting. Tolerances do filter: 42.7% of the adjacent pairs accept each other, an LCC exists for 96.2% of the 472 queries, and its median size is 12% of that of q's k-core component.
Premise test: The premise test asks whether co-sponsorship tolerances predict Twitter interactions beyond ideological distance. The planned hypothesis is not supported. In a logistic model of whether u interacted with v, with sender and receiver effects, a spline in the distance, and indicators of the same party, state and chamber, the coefficient of is -0.044 (one-sided permutation , permuting tolerances within party and chamber), and it does not improve the held-out log loss. Members with wider co-sponsorship radii interact over wider ranges (Spearman 0.71 [0.65, 0.76]; 0.63 [0.56, 0.68] controlling for party, chamber and centrality), but the cutoff at adds nothing beyond distance and fixed effects, so this tolerance estimate is not validated on Twitter. A possible explanation, which we do not test, is the adversarial nature of some replies and mentions; Luan et al. [38] find more cross-ideological exchanges in reply ties than follow ties. Of the secondary variants, only 90th-percentile tolerances yield a significantly positive coefficient (0.32, ).
Static violations and dynamics: Groups found without tolerances often contain members who face someone beyond their own tolerance (391 of the 454 size-matched SAC groups; 4.9%, 8.2% and 56.7% of the members of -cores at , size-matched SAC groups and global -cores; Table V); pairwise groups contain none by definition, but only 0.7% of them satisfy (iii). Table V also gives the groups satisfying (iii) and the member pairs with at least one refusal. In closed dynamics, no LCC group loses an interaction accepted at the start, as Theorem 1 predicts. Pairwise groups never do under equal weights or under weights proportional to the observed Twitter interactions, but 26–47% do under concentrated weights, gossip, and updates that follow one random accepted neighbour, as do 33–49% of the size-matched SAC groups and -cores at ; global -cores lose an interaction in 33% of the cases even under equal weights. No LCC group satisfies the conditions of Proposition 3; in open dynamics, none loses an interaction for , but 22%, 41% and 81% do at , 0.5 and 1, and 98% with observed weights. Unlike on Gowalla and Brightkite, LCC groups here lose an interaction more often than size-matched SAC groups at every .

Fig. 4. Groups for one Congress query (), chosen by a rule fixed in advance (see text).
(22% against 11% at ), and more often than pairwise groups at and 0.5. Because the premise test fails, these results illustrate simulated dynamics on real ideological positions; they do not establish how legislators respond to one another. Fig. 4 shows one query, chosen by a rule fixed in advance: of the 391 of 454 queries (86%) whose size-matched SAC group has a member facing another beyond its interval, the one whose LCC size is nearest the median (ties: lowest id); it illustrates Table V and adds no result.
Co-sponsorship: In the test period (June 10, 2022 to January 3, 2023), the share of member pairs who co-sponsor a bill is not measurably higher in LCC groups than in size-matched SAC groups: +0.39 pp [-0.13, 0.92] raw, -0.30 pp [-1.03, 0.43] at equal size with other members, and +0.36 pp [-0.16, 0.91] size-adjusted; as about two thirds of the member pairs and 99.9% of the members of LCC groups co-sponsor with each other, this measure discriminates poorly.
A second parliament: On the European Parliament of 2014–16 [62] (roll-call positions, tolerances from earlier retweets), the premise test is again negative (); only 90th-percentile tolerances give a positive coefficient (0.42, , no held-out gain), an untested hint that acceptance reaches beyond the median distance. In size-matched SAC groups, 21% of the members face someone beyond their tolerance, and 21–52% of the groups lose an initially accepted interaction under unequal influence; no LCC group does.
VII. CONCLUSION
Bounding group diameter by the smallest member tolerance connects community search to persistent acceptance: closed LCC groups preserve acceptance under bounded-confidence dynamics with any positive weights and avoid rejection under SJT dynamics. Natural relaxations lose these guarantees, and finding a largest LCC is NP-hard even in the plane. LatSweep searches through one threshold and returns certificates of optimality or a bound on the remaining gap. Its exact variant answers most evaluated queries faster than extracting 's -core component, handles graphs with 1.8 billion edges, and
returns an LCC of at least 0.689 times a proven upper bound on the efficiency queries stopped early.
The guarantees concern modelled closed-group dynamics. Testing observed opinion change would require longitudinal positions and tolerances that are unavailable here. In two parliaments, the U.S. Congress [58]–[60] and the European Parliament [62], tests fixed in advance found that tolerances estimated from co-sponsorship or earlier retweets do not predict who interacts on Twitter beyond ideological distance (permutation and 0.78; Section VI-E). Outside ties void the guarantee for many real groups (Section VI-C), and once synthetic tolerances span several communities, Exact times out on many queries with an LCC (Section VI-B). For meetups, the diameter bound is conservative and may reduce co-visits relative to pairwise acceptance. Tolerances estimated from check-ins are noisy; they should not be used to label or exclude individuals. Open questions include learning tolerances, maintaining LCCs as graphs evolve, and approximating MAXLCC in fixed dimension.
APPENDIX A
SUPPLEMENTARY RESULTS
This appendix provides the full tables for Section VI. The tables retain the runs reported in the main text; any change in sample or sweep order is stated explicitly.
A. Dynamics: All Variants and Methods
Tables VI and VII extend Table IV to all variants and methods, with the same abbreviations G, B, L and O; <1 marks shares above 0 and below 1%, and – marks runs not performed (edge-accept was not run on LiveJournal and Orkut). A group is counted in the SJT rows when it shows a new rejection. The last column of Table VI counts simulated LCC groups per variant, out of 1,000, 462, 95 and 115. Complete-graph and multi-run variants skip groups above a size cap (see Variants). Other methods have lower coverage because their larger groups are skipped more often (for gossip on Orkut, 37 of 115 ()-cores at ). For each method, the last row of both tables reports its groups under equal-weight HK on . The groups are those of Table IV: on Gowalla and Brightkite, 1,000 and 462 meetup queries with an LCC and 300 sampled queries without one, and on LiveJournal and Orkut, 200 default queries; the LCC, Greedy, ()-cores at , size-matched SAC and random groups exist only for queries with an LCC, whereas the other methods may also return groups for queries without an LCC. BallCore-F returns subsets satisfying (iii), and no BallCore-F group loses an interaction in a closed variant. We omit the -core component because almost all its groups exceed 5,000 members, the largest group size we simulate.
Variants: HK (1) runs with equal weights, also for 3,000 steps with a stopping rule times stricter, or with weights drawn in each run from a Dirichlet distribution with or . In follow one neighbour, each member moves halfway towards one accepted neighbour drawn at random in each step; in gossip [32], a random edge interacts, and each
TABLE VI
GROUPS (%) THAT LOSE AN INTERACTION ACCEPTED AT THE START IN ALL 21 VARIANTS: METHODS THAT USE TOLERANCES.
| Variant | LCC (Exact) | Greedy | BallCore-R | Pairwise | Edge-accept | LCC groups | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G | B | L | O | G | B | L | O | G | B | L | O | G | B | L | O | G | B | L | O | G | B | L | O |
| Closed group, interactions on | |||||||||||||||||||||||
| HK, equal weights | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | <1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 67 | 63 | -- | -- | 1,000/462/95/115 | ||
| HK, equal, 3,000 steps | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | <1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 67 | 63 | -- | -- | 1,000/462/95/115 | ||
| HK, random weights, | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 7 | 0 | <1 | 1 | <1 | 0 | 0 | 78 | 77 | -- | -- | 1,000/462/95/115 | ||
| HK, random weights, | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 62 | 56 | 64 | 76 | 40 | 33 | 32 | 40 | 85 | 85 | -- | -- | 1,000/462/95/115 | ||
| Follow one neighbour | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 45 | 31 | 3 | 12 | 7 | 8 | 0 | <1 | 81 | 80 | -- | -- | 1,000/462/95/115 | ||
| Gossip (DW) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 54 | 38 | 28 | 58 | 17 | 11 | 3 | 7 | 82 | 82 | -- | -- | 1,000/462/95/115 | ||
| SJT, new rejection | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 29 | 15 | 49 | 82 | <1 | 0 | 0 | <1 | 74 | 73 | -- | -- | 1,000/462/95/115 | ||
| Closed group, complete interaction graph | |||||||||||||||||||||||
| HK, equal weights | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | <1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 57 | 62 | -- | -- | 1,000/462/95/115 | ||
| HK, random weights, | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 57 | 73 | -- | -- | 931/462/95/115 | ||
| HK, random weights, | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 29 | 39 | 11 | 12 | 13 | 23 | 5 | 4 | 76 | 85 | -- | -- | 931/462/95/115 | ||
| Follow one neighbour | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 51 | 46 | 10 | 33 | 30 | 17 | 1 | <1 | 72 | 82 | -- | -- | 931/462/95/115 | ||
| Gossip (DW) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 47 | 44 | 7 | 43 | 27 | 21 | 6 | 17 | 66 | 72 | -- | -- | 907/462/63/71 | ||
| SJT, new rejection | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 17 | 65 | 87 | <1 | 0 | 0 | 2 | 70 | 72 | -- | -- | 1,000/462/95/115 | ||
| Assumptions violated | |||||||||||||||||||||||
| Open group, | 65 | 62 | 0 | 0 | 63 | 63 | 0 | 0 | 74 | 70 | 0 | 0 | 72 | 67 | 0 | 0 | 83 | 85 | -- | -- | 1,000/462/95/115 | ||
| Open group, complete | 61 | 57 | 0 | 0 | 57 | 57 | 0 | 0 | 67 | 62 | 0 | 0 | 65 | 60 | 0 | 0 | 78 | 86 | -- | -- | 1,000/462/95/115 | ||
| Stubborn outsiders, | 91 | 94 | 1 | <1 | 90 | 94 | 1 | 1 | 93 | 97 | 3 | 2 | 93 | 97 | 0 | 2 | 97 | 100 | -- | -- | 1,000/462/95/115 | ||
| Stubborn outsiders, | 98 | 99 | 49 | 33 | 98 | 99 | 39 | 26 | 98 | 100 | 73 | 46 | 98 | 100 | 65 | 38 | 99 | 100 | -- | -- | 1,000/462/95/115 | ||
| Stubborn outsiders, | 99 | 100 | 91 | 71 | 98 | 100 | 88 | 68 | 99 | 100 | 93 | 84 | 99 | 100 | 93 | 80 | 99 | 100 | -- | -- | 1,000/462/95/115 | ||
| Tolerance noise, | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 70 | 69 | -- | -- | 1,000/462/95/115 | ||
| Tolerance noise, | 0 | <1 | 0 | 0 | <1 | 0 | 0 | 0 | 16 | 5 | <1 | 3 | 0 | <1 | 0 | 0 | 73 | 73 | -- | -- | 1,000/462/95/115 | ||
| Tolerance noise, | 2 | 3 | 0 | 3 | 2 | 4 | 0 | 1 | 31 | 21 | 6 | 12 | 3 | 4 | <1 | 2 | 76 | 75 | -- | -- | 1,000/462/95/115 | ||
| Groups (HK, equal, ) | 1,000 | 462 | 95 | 115 | 887 | 447 | 83 | 93 | 1,004 | 467 | 107 | 130 | 1,003 | 464 | 107 | 129 | 1,011 | 471 | -- | -- | |||
TABLE VII
AS TABLE VI: METHODS THAT IGNORE TOLERANCES.
| Variant | (k, r)-core at | Global (k, r)-core | SAC | Size-matched SAC | Random | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G | B | L | O | G | B | L | O | G | B | L | O | G | B | L | O | G | B | L | O | |
| Closed group, interactions on | ||||||||||||||||||||
| HK, equal weights | 15 | 17 | 4 | 13 | 60 | 33 | 7 | 6 | 18 | 32 | 1 | 3 | 5 | 8 | 1 | 2 | 37 | 27 | 0 | 0 |
| HK, equal, 3,000 steps | 15 | 17 | 4 | 13 | 60 | 33 | 7 | 6 | 18 | 32 | 1 | 3 | 5 | 8 | 1 | 2 | 37 | 27 | 0 | 0 |
| HK, random weights, | 26 | 35 | 43 | 68 | 77 | 81 | 53 | 77 | 26 | 43 | 22 | 42 | 21 | 29 | 38 | 59 | 55 | 45 | 21 | 26 |
| HK, random weights, | 41 | 44 | 91 | 97 | 86 | 89 | 99 | 99 | 41 | 56 | 78 | 84 | 52 | 56 | 89 | 98 | 64 | 53 | 75 | 69 |
| Follow one neighbour | 33 | 39 | 58 | 78 | 82 | 81 | 73 | 86 | 30 | 45 | 26 | 41 | 35 | 35 | 48 | 67 | 55 | 45 | 15 | 24 |
| Gossip (DW) | 34 | 40 | 69 | 85 | 83 | 82 | 81 | 93 | 32 | 47 | 38 | 55 | 39 | 40 | 63 | 86 | 57 | 47 | 39 | 31 |
| SJT, new rejection | 25 | 31 | 92 | 98 | 75 | 71 | 99 | 99 | 28 | 47 | 61 | 83 | 21 | 31 | 85 | 97 | 90 | 89 | 98 | 97 |
| Closed group, complete interaction graph | ||||||||||||||||||||
| HK, equal weights | 18 | 23 | 33 | 54 | 59 | 50 | 39 | 56 | 15 | 31 | 13 | 25 | 8 | 14 | 15 | 34 | 53 | 40 | 2 | 2 |
| HK, random weights, | 18 | 31 | 37 | 69 | 62 | 68 | 43 | 76 | 18 | 40 | 17 | 42 | 17 | 28 | 29 | 65 | 65 | 61 | 29 | 37 |
| HK, random weights, | 29 | 45 | 89 | 95 | 79 | 87 | 97 | 99 | 31 | 51 | 74 | 83 | 37 | 47 | 88 | 98 | 74 | 68 | 81 | 84 |
| Follow one neighbour | 36 | 43 | 70 | 89 | 77 | 86 | 78 | 96 | 30 | 44 | 40 | 58 | 45 | 48 | 63 | 88 | 67 | 61 | 39 | 39 |
| Gossip (DW) | 27 | 42 | 54 | 78 | 73 | 81 | 74 | 84 | 28 | 43 | 34 | 53 | 41 | 46 | 50 | 80 | 66 | 61 | 33 | 30 |
| SJT, new rejection | 24 | 29 | 92 | 100 | 71 | 75 | 99 | 99 | 23 | 44 | 67 | 85 | 19 | 30 | 93 | 97 | 78 | 78 | 93 | 97 |
| Assumptions violated | ||||||||||||||||||||
| Open group, | 75 | 80 | 4 | 12 | 84 | 84 | 5 | 9 | 61 | 74 | 4 | 11 | 73 | 79 | 5 | 14 | 49 | 37 | 0 | <1 |
| Open group, complete | 73 | 81 | 33 | 55 | 80 | 87 | 39 | 57 | 58 | 72 | 14 | 31 | 70 | 80 | 15 | 44 | 60 | 46 | 2 | 3 |
| Stubborn outsiders, | 96 | 99 | 52 | 68 | 97 | 99 | 64 | 76 | 92 | 97 | 24 | 29 | 95 | 99 | 38 | 45 | 80 | 77 | 12 | 9 |
| Stubborn outsiders, | 98 | 100 | 83 | 90 | 99 | 100 | 97 | 97 | 97 | 99 | 59 | 60 | 98 | 100 | 79 | 82 | 89 | 86 | 48 | 35 |
| Stubborn outsiders, | 99 | 100 | 96 | 97 | 99 | 100 | 99 | 100 | 98 | 99 | 80 | 84 | 99 | 100 | 95 | 97 | 91 | 88 | 80 | 70 |
| Tolerance noise, | 17 | 22 | 16 | 32 | 65 | 58 | 15 | 20 | 17 | 33 | 4 | 10 | 9 | 13 | 6 | 10 | 44 | 32 | 0 | <1 |
| Tolerance noise, | 23 | 27 | 21 | 39 | 70 | 65 | 24 | 34 | 20 | 37 | 8 | 12 | 15 | 19 | 9 | 14 | 48 | 37 | 0 | 3 |
| Tolerance noise, | 28 | 35 | 25 | 38 | 74 | 73 | 31 | 40 | 26 | 39 | 10 | 16 | 23 | 29 | 15 | 23 | 51 | 42 | 1 | 2 |
| Groups (HK, equal, ) | 1,000 | 462 | 95 | 115 | 994 | 428 | 150 | 162 | 1,243 | 745 | 153 | 178 | 1,000 | 462 | 95 | 115 | 1,000 | 462 | 95 | 115 |
end that accepts the other moves 0.3 of their distance towards it, for 100 rounds of such steps (50 rounds on complete graphs). SJT (2) uses equal weights, , and ; there we report new rejections, the event that Theorem 2 excludes. Randomized variants run 10 times (gossip on complete graphs 5 times), and a group counts if any run loses an interaction. On complete interaction graphs, every member hears every other; these variants run on groups of at most 1,000 members (equal weights, SJT, open), 300 (random weights, follow) or 100 (gossip), and the randomized variants on on groups of at most 2,000 members. The last three blocks test sensitivity to departures from the assumptions in Section IV. In open groups, members also average with the outside neighbours they accept, which stay fixed, with the same weight as accepted members ( in Section VI-C; at most 200 outside neighbours per member, sampled at random); stubborn outsiders pull each member with weight towards the fixed mean of all its outside neighbours, near or far; with tolerance noise, the dynamics use with standard normal , whereas the groups were found with .
Observations: In closed variants, no group returned by a method guaranteeing (iii) (LCC, Greedy) loses an interaction; a tenfold longer run leaves every entry unchanged. BallCore-R, whose sets need not satisfy (iii), loses interactions under uneven influence in up to 76% of its groups on . On complete interaction graphs, pairwise groups also lose interactions under uneven influence (up to 30%), and the -cores at already under equal weights (18–54%). With stubborn outsiders, at least 77% of the groups of every method lose an interaction on the meetup graphs, whose outside friends lie in all directions; on the synthetic graphs at , about 1% of the LCC groups do, against 52–68% of the -cores at . Up to , tolerance noise barely affects LCC and pairwise groups (below 1%), while 16–39% of -cores at lose an interaction.
LCC or pairwise: Table VIII provides the results for the paragraph “LCC or pairwise” of Section VI-C. It counts queries for which both LCC and pairwise groups exist and are proven optimal, the share where the pairwise group is strictly larger, and the median pairwise-to-LCC size ratio across these queries. The other columns give the pairwise groups (%) that lose an interaction accepted at the start, for the groups of Table IV: in any of 10 runs, as in Table IV, and on average per run; no LCC group ever does. Pairwise groups are strictly larger than LCCs for most queries, and under uneven influence they lose an accepted interaction in a few of their runs: on average 5–13% of the runs under concentrated weights, 1–5% under gossip, and at most 2% when each member follows one neighbour. On Gowalla and Brightkite, the pairwise group is the LCC itself for 938 of the 978 and 177 of the 181 queries on which the two have the same size (the paired co-visit difference on these is +0.14 pp [−0.03, 0.36] and 0.00 pp), and on the 1,491 and 281 queries on which it is larger (median 52 against 34 and 17 against 12 members), the LCC’s pair rate is higher by +1.49 pp [1.08, 1.95] and +1.77 pp [1.12, 2.50]. The size-adjusted difference (b) of Section VI-D, a linear re-


Fig. 5. A refusal in a Gowalla pairwise group: (a) homes and first moves; (b) worst adjacent pair per step.
gression of the difference on the log size ratio, gives intercepts of -0.85 pp [-1.35, -0.37] and -0.29 pp [-0.69, 0.11]. The relation is far from linear: on Gowalla, the mean difference is +0.14 pp for log size ratios in [0, 0.25), +1.2 and +0.8 pp in [0.25, 0.5) and [0.5, 1), and +7.6 and +27 pp for the 67 and 32 queries with log ratios in [1, 2) and above 2, which set the slope; without the latter 99 queries, the intercept is +0.10 pp. On Brightkite, the intercept stays negative without the queries of log ratio at least 1 (-0.38 pp). The fitted line also misses the equal-size queries for size-matched SAC groups (+0.01 against +0.19 pp on Gowalla, -0.05 against +0.30 pp on Brightkite), so (b) is a coarse adjustment for every baseline, and with pairwise groups, whose equal-size groups are almost all the LCC itself, it rests on extrapolation. Results on Yelp are omitted in this version (see the footnote on the first page).
B. Refusals in Pairwise Groups
Table IX examines the refusals behind the column of concentrated weights in Table IV on Gowalla and Brightkite. For the queries with an LCC, we replayed every run of the pairwise and LCC groups of that column with the same random streams and an instrumented copy of the simulator that records, for each directed interaction accepts accepted at the start, the first step at which it is refused; the replay reproduces the stored results of every group and run exactly, and no LCC group ever refuses an interaction. The table counts refused interactions over all runs; a refuser counts as the least tolerant member if its tolerance equals the group's minimum (ties included), and as one of the three least tolerant if it is the least tolerant or its average rank from the least tolerant is at most 3 (tied members share their average rank). The counts for the three least tolerant members and for either participant lying outside the LCC were added after the analysis plan was fixed.
At the start, refused interactions are not close to tolerance (median of 0.55, and at least 0.9 for only 9% and 12%). Refusal occurs mostly at the first step. During the run, the largest distance excess over has a median of 8% and 10%; by the end, all but about 1% are accepted again. The refuser is one of the three least tolerant members of the group in 73% and 94% of the refused interactions and is (or ties for) the least tolerant one in 45% and 73%; the least tolerant member is the one that bounds the diameter in (iii). In 84%
TABLE VIII LCC AGAINST PAIRWISE GROUPS: SIZES, AND PAIRWISE GROUPS (%) THAT LOSE AN ACCEPTED INTERACTION ON .
| Graph | Queries | Pairwise vs. LCC | Concentrated | Gossip | Follow one | ||||
|---|---|---|---|---|---|---|---|---|---|
| Larger (%) | Size ratio | Any | Per run | Any | Per run | Any | Per run | ||
| Gowalla | 2,469 | 60.4 | 1.08 | 40.4 | 13.2 | 16.6 | 5.1 | 6.9 | 1.9 |
| Brightkite | 462 | 60.8 | 1.09 | 33.4 | 8.1 | 10.6 | 2.9 | 7.8 | 1.5 |
| LiveJournal | 87 | 93.1 | 1.33 | 31.8 | 4.8 | 2.8 | 0.8 | 0.0 | 0.0 |
| Orkut | 102 | 97.1 | 1.52 | 39.5 | 7.8 | 7.0 | 1.7 | 0.8 | 0.2 |
TABLE IX REFUSED INTERACTIONS IN PAIRWISE GROUPS UNDER CONCENTRATED WEIGHTS (; REFUSES ).
| Gowalla | Brightkite | |
|---|---|---|
| Pairwise groups with a refusal | 402 of 1,000 | 153 of 462 |
| Refused interactions, all runs | 2,200 | 592 |
| Initial , median [quartiles] | 0.55 [0.36, 0.73] | 0.55 [0.28, 0.77] |
| Initial (%) | 8.9 | 11.8 |
| Step of refusal, median | 1 | 1 |
| Largest , median | 1.08 | 1.10 |
| Still refused at the end (%) | 1.2 | 1.0 |
| Refuser is the least tolerant member (%) | 45.3 | 73.3 |
| Refuser among the three least tolerant (%) | 72.9 | 93.9 |
| Refuser outside the LCC (%) | 69.1 | 71.1 |
| Refuser or refused outside the LCC (%) | 83.7 | 82.4 |
| Pairwise members outside the LCC, median | 22.5 | 5 |
and 82% of the refused interactions, the LCC of the same query excludes the refuser, the refused member or both, while the pairwise groups with a refusal have a median of 22.5 and 5 members outside the LCC. These refusals use simulated influence weights. Closed Congress dynamics with weights proportional to observed interactions produce no loss in any pairwise group (Section VI-E).
Fig. 5 shows the case chosen by a rule fixed in advance: among the 250 Gowalla groups of at most 80 members with a refusal, the group whose size is nearest the median of 33 (ties: lowest query), its first run with a refusal, and its earliest refused interaction. Positions are shown relative to the group centroid. Member ( km, outside the LCC) puts 99.8% of its weight on one neighbour, also outside the LCC, and moves 2.0 km in the first step; its distance to ( km, the second least tolerant of the 33 members, in the LCC of 27 members) grows from 0.50 to 1.004 and is back within from the second step on. For the same query and run index, every adjacent pair in the LCC remains within 0.76 times its smaller tolerance.
C. Heterogeneity of Tolerances
Table X provides further results for the paragraph on heterogeneity in Section VI-B. It uses 200 default queries per setting and the count-order sweep (Exact 60 s, the other searches 10 s). For each , it gives the queries (%) with an LCC and those reaching the 60 s limit, out of all; for the other methods, columns (iii) holds, Members and Size/LCC give the groups (%) satisfying (iii), the mean share (%) of members who face another member beyond their own tolerance, and the median size relative to the LCC where both exist; Global is
the greedy -core search with the median tolerance. With equal tolerances, every -core at and every pairwise group satisfies (iii), and their median size equals the LCC's; Exact reaches the limit on 45% of the Orkut queries there, the setting in which the LCC is a maximum -core. As grows, fewer queries have an LCC, and the -cores at grow to 1.25–4.21 times the LCC's size (median) while at most 9% of them satisfy (iii). The reported time-limit shares use the count-order sweep; the best-first sweep is used in Table II.
D. Synthetic Robustness
Table XI provides further results for the paragraph on the tolerance scale and the proven share in Section VI-B, with 200 queries per setting and a 60 s limit. Column LCC counts the queries with an LCC; the next columns give shares (%) of these queries: proven, reaching the limit, and stopped at the cap on searched sets; the last column gives, for the queries reaching the limit, the median ratio (%) of the returned LCC to the proven upper bound. Here the mean tolerance is times the median distance between friends (106.9 on LiveJournal and 126 on Orkut, mostly between communities), without calibration on Exact; already corresponds to scales of 9.4 and 11.1, against the calibrated 1.5 and 1.25. We also draw queries uniformly from the whole -core instead of from groups of at least 20 members, and move a share of the vertices to a random community. Where tolerances reach the scale between communities ( on Orkut, on LiveJournal), 35–99% of the queries with an LCC reach the time limit and the bounds for these queries are loose; in the other settings, Exact proves every query.
E. Caps and Time Limit at the Scale between Communities
Table XII varies one parameter of Section V-C at a time on the three settings of Table XI where Exact starts to time out, with the same instances and queries: the cap on searched sets (default 3,000), the cap on the root bound (default 20,000), the number of thresholds Greedy tries for the initial incumbent (default 20), and, for the queries left unproven at the default (C0), a time limit of 300 s instead of 60 s. Raising a cap changes the proven share by at most +1.1 pp (two queries on Orkut at ); with a larger cap on searched sets, the queries that stopped at that cap under C0 (0.6–1.1%) reach the time limit instead. Letting Greedy try all thresholds lowers the share by 3.3 and 2.3 pp on LiveJournal at and Orkut at , because the longer initial phase consumes part of the limit. Under a 300 s limit, Exact proves 5 of
TABLE X HETEROGENEITY SWEEP ON LIVEJOURNAL (L) AND ORKUT (O), COUNT-ORDER SWEEP.
| With LCC | Exact limit | (k, r)-core at | Pairwise | Global (k, r) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| L | O | L | O | (iii) holds | Members | Size/LCC | (iii) holds | Members | ||||||
| L | O | L | O | L | O | L | O | L | O | |||||
| 0.0 | 76.5 | 85.5 | 0.5 | 45.0 | 100.0 | 100.0 | 0 | 0 | 1.00 | 1.00 | 100.0 | 100.0 | 0 | 0 |
| 0.2 | 70.0 | 74.5 | 14.0 | 26.5 | 8.6 | 4.7 | 12 | 23 | 1.25 | 1.50 | 4.1 | 0.6 | 27 | 38 |
| 0.4 (default) | 47.5 | 57.5 | 4.0 | 7.0 | 4.2 | 0.0 | 31 | 43 | 1.80 | 2.19 | 5.6 | 2.3 | 40 | 44 |
| 0.6 | 39.0 | 44.0 | 0.5 | 3.0 | 2.6 | 1.1 | 43 | 52 | 2.54 | 2.93 | 7.1 | 3.1 | 45 | 47 |
| 0.8 | 30.5 | 33.0 | 0.0 | 0.0 | 1.6 | 0.0 | 49 | 61 | 2.72 | 3.87 | 9.0 | 2.7 | 47 | 49 |
| 1.0 | 21.0 | 27.5 | 0.0 | 0.0 | 2.4 | 1.8 | 55 | 65 | 3.50 | 4.21 | 11.1 | 6.9 | 49 | 48 |
TABLE XI SYNTHETIC SETTINGS: SCALE, QUERY SAMPLING AND COMMUNITY MIXING.
| Graph | Setting | LCC | Proven (%) | Limit (%) | Size cap (%) | Solution/ bound (%) |
|---|---|---|---|---|---|---|
| LiveJournal | c = 0.5 | 153 | 100.0 | 0.0 | 0.0 | - |
| LiveJournal | c = 0.75 | 153 | 100.0 | 0.0 | 0.0 | - |
| LiveJournal | c = 1 | 153 | 64.1 | 35.3 | 0.7 | 0.33 |
| LiveJournal | c = 1.5 | 150 | 15.3 | 84.0 | 0.7 | 0.04 |
| LiveJournal | c = 2 | 119 | 3.4 | 95.0 | 1.7 | 0.03 |
| Orkut | c = 0.5 | 177 | 100.0 | 0.0 | 0.0 | - |
| Orkut | c = 0.75 | 177 | 50.8 | 48.0 | 1.1 | 0.91 |
| Orkut | c = 1 | 177 | 19.8 | 79.7 | 0.6 | 0.18 |
| Orkut | c = 1.5 | 161 | 3.1 | 96.3 | 0.6 | 0.40 |
| Orkut | c = 2 | 177 | 0.6 | 99.4 | 0.0 | 7.6 |
| LiveJournal | q from the k-core | 91 | 100.0 | 0.0 | 0.0 | - |
| Orkut | q from the k-core | 92 | 100.0 | 0.0 | 0.0 | - |
| LiveJournal | mixing | 80 | 100.0 | 0.0 | 0.0 | - |
| LiveJournal | mixing | 68 | 100.0 | 0.0 | 0.0 | - |
| LiveJournal | mixing | 42 | 100.0 | 0.0 | 0.0 | - |
| Orkut | mixing | 103 | 100.0 | 0.0 | 0.0 | - |
| Orkut | mixing | 83 | 100.0 | 0.0 | 0.0 | - |
| Orkut | mixing | 51 | 100.0 | 0.0 | 0.0 | - |
TABLE XII PROVEN SHARE (%) OF THE QUERIES WITH AN LCC WHEN ONE CAP OR THE TIME LIMIT CHANGES (200 QUERIES PER SETTING).
| Setting (LCC) | C0 | Proven (%) with | 300s: proven / unproven under C0 | |||
|---|---|---|---|---|---|---|
| cap 20,000 | cap 50,000 | root 100,000 | Greedy all | |||
| LiveJournal c = 1 (153) | 64.1 | 64.1 | 64.1 | 64.1 | 60.8 | 5 / 55 |
| Orkut c = 0.75 (177) | 50.8 | 51.4 | 52.0 | 50.8 | 48.6 | 1 / 87 |
| Orkut c = 1 (177) | 19.8 | 20.3 | 20.3 | 19.8 | 19.8 | 0 / 142 |
55, 1 of 87 and 0 of 142 queries. Across configurations, the median returned-LCC-to-bound ratio remains 0.18–1.3%. Every configuration returns the same optimum wherever it proves one, in agreement with Table XI; the queries with an LCC have a median of 1,218 (LiveJournal), 8,360 and 210,146 (Orkut, c = 0.75 and 1) candidate vertices, and each engine process uses at most 2.7 GB.
F. Sweep against a Single Threshold
Table XIII runs our engine on one threshold only, as a maximum (k, r)-core search containing q without personal tolerances, at the median tolerance of all vertices (as the global baseline) and at the threshold of the optimal LCC, which the single-threshold search does not know in advance; the latter is run only on queries with an LCC. Time ratios are computed per query with an LCC, flooring both times at 1 ms; the last column reports the share of these queries for which the sweep
is faster. Query times exclude index construction, which the single-threshold search does not use. The index is built once per process; in this run it took 5.7 s on LiveJournal and 14.3 s on Orkut (a slower run than the 9.7 s of Section VI-B). On LiveJournal, where the sweep answers most queries in under 1 ms, amortizing this cost over 200 queries would raise the median ratio to about 39. The non-empty single-threshold answers satisfy (iii) on 0% of the queries at the median tolerance and on 4.2% (LiveJournal) and 0% (Orkut) at .
G. Unproven Efficiency Queries
Table XIV lists the unproven queries of Section VI-B, with the size of the returned LCC, the proven upper bound UB, their ratio (truncated), the candidate vertices (those with a non-empty survival interval), the thresholds evaluated out of all, and the branch-and-bound nodes. Every candidate set is a subset of the candidate vertices, of which these queries
TABLE XIII
THE SWEEP AND SINGLE-THRESHOLD -CORE SEARCHES ON THE 200 DEFAULT QUERIES OF TABLE III (60 S LIMIT).
| Graph | Search | Queries (of 200) | Median time (ms) | Time ratio, sweep / single | Sweep faster (%) | ||
|---|---|---|---|---|---|---|---|
| Proven non-empty | Proven empty | Limit | |||||
| LiveJournal | Sweep (Exact) | 95 | 105 | 0 | 0.13 | - | - |
| LiveJournal | -core at median | 131 | 50 | 19 | 2.1 | 0.89 | 55 |
| LiveJournal | -core at (95 queries) | 79 | - | 16 | 6.2 | 0.86 | 56 |
| Orkut | Sweep (Exact) | 115 | 85 | 0 | 3.2 | - | - |
| Orkut | -core at median | 96 | 33 | 71 | 959 | 0.065 | 92 |
| Orkut | -core at (115 queries) | 78 | - | 37 | 2,586 | 0.135 | 94 |
TABLE XIV
THE NINE EFFICIENCY QUERIES THAT EXACT LEAVES UNPROVEN WITHIN 60 s.
| Graph | Setting | LCC | UB | LCC/UB | Candidates | Thresholds | Nodes |
|---|---|---|---|---|---|---|---|
| Friendster | default | 147 | 212 | 0.693 | 587 | 22/25 | 519,058 |
| Friendster | default | 305 | 336 | 0.907 | 560 | 83/84 | 263,320 |
| Friendster | default | 374 | 398 | 0.939 | 738 | 69/78 | 102,156 |
| LiveJournal | 2× scale | 552 | 578 | 0.955 | 803 | 34/35 | 60,421 |
| Orkut | 2× scale | 719 | 732 | 0.982 | 918 | 154/851 | 70,370 |
| Pokec | default | 169 | 245 | 0.689 | 622 | 77/83 | 539,455 |
| Pokec | default | 179 | 246 | 0.727 | 645 | 73/79 | 417,817 |
| Pokec | default | 189 | 253 | 0.747 | 578 | 323/484 | 551,931 |
| Pokec | default | 369 | 394 | 0.936 | 787 | 379/539 | 199,822 |
TABLE XV
THE VALUES OF FIG. 3 (PP, 95% BOOTSTRAP CIS).
| Gowalla | Brightkite | |
|---|---|---|
| Pairs, raw | +0.75 [0.50,0.99] | +0.56 [0.15,1.01] |
| (a) same size | +0.44 [-0.15,1.02] | +0.74 [-0.28,1.74] |
| (b) adjusted | +0.01 [-0.24,0.24] | -0.05 [-0.49,0.47] |
| Members, raw | -1.35 [-1.83,-0.87] | +0.12 [-0.84,1.08] |
| (a) same size | -0.30 [-1.52,0.99] | +2.86 [0.96,4.79] |
| Queries, all / (a) | 2,469 / 610 | 462 / 108 |
TABLE XVI
YELP, LCC MINUS SIZE-MATCHED SAC (PP, 95% BOOTSTRAP CIS) ON THE TWO TIME SPLITS.
Omitted in this version; see the footnote on the first page.
have at most 918 and no efficiency query has more than 1,502, so the size caps of Section V-C never apply; the search explores 60,421–551,931 nodes without settling all thresholds. The bound pass after the limit, which query times exclude, takes at most 4 µs on these queries; on all other efficiency queries, it does not run.
H. Meetups
Table XV gives the values plotted in Fig. 3: LCC minus size-matched SAC where both exist, in the share of member pairs that co-visit and of members who co-visit with anyone in the group: raw, on queries where SAC returns a group of the LCC's size with other members (a), and as the intercept of a regression on the log size ratio (b). The Yelp column is omitted in this version (see the footnote on the first page).
I. Yelp on a Second Time Split
This Yelp robustness check is omitted in this version, with Table XVI (see the footnote on the first page).
J. Queries without an LCC and Tolerance Scaling
Table XVII provides the classification for the paragraph on empty LCCs in Section VI-D. At the median tolerance and on all queries, a query without an LCC is in class A if the k-core of q's component restricted to friendships whose ends accept each other is empty, in B if it is not but no pairwise group exists, in C if a pairwise group exists but no LCC, and in U if the LCC or pairwise search is not proven; columns A–U give shares (%) of the queries without an LCC (Congress: counts). The next two columns give the share of these queries that gain an LCC when every tolerance is the 70th or 90th percentile of the user's distances, and the last five the share of queries without an LCC at the 90th percentile and its classes; raised tolerances use the 2,000 sampled queries of the parameter study, and on Congress the two columns count all 18 queries without an LCC. Raising tolerances to the 90th percentile gives an LCC to 605 of 1,698 and 606 of 1,822 sampled queries without one. Queries of classes B and C almost all gain an LCC at the 90th percentile (B: 45 of 45 and 50 of 51; C: 41 of 41 and 8 of 8 on Gowalla and Brightkite), but only about a third of class A do (519 of 1,612 and 548 of 1,763). Newly obtained LCCs have median sizes of 21.5 and 13 members at the 70th percentile, and 103 and 42 at the 90th. The Yelp row is omitted in this version (see the footnote on the first page).
Table XVIII provides the full tolerance-scaling results for the same paragraph, on the same queries at every s with Exact limited to 60 s. It gives the queries (%) with an LCC, the queries (%) proven within the limit, the median LCC size, and the queries without an LCC by class (Table XVII). For s < 1, column Kept gives the share (%) of the queries with an LCC at s = 1 that keep one, with the median size ratio of the kept LCCs in parentheses; for s > 1, column Gained gives the share of the queries without an LCC at s = 1 that gain one. The last two columns report the mean co-visiting share of member pairs in LCC groups and its difference from s = 1, for queries with an LCC at both scales (pp, 95% bootstrap CI). Whenever both solutions are proven, increasing s never shrinks an LCC; the Yelp block is omitted (see the footnote on the first page). Larger tolerances give more and larger LCCs whose pairs co-visit less, and smaller ones fewer and smaller LCCs whose pairs co-visit more; all paired differences exclude 0 except
TABLE XVII QUERIES WITHOUT AN LCC () BY CAUSE, AND WITH RAISED TOLERANCES.
| Data | Queries | No LCC | Without LCC, median tolerance (%) | Solved when raised (%) | 90th percentile, sample (%) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| A | B | C | U | 70th | 90th | No LCC | A | B | C | U | |||
| Gowalla | 15,829 | 13,360 (84.4%) | 95.0 | 3.2 | 1.8 | 0 | 15.0 | 35.6 | 54.7 | 85.1 | 11.8 | 3.1 | 0 |
| Brightkite | 5,260 | 4,798 (91.2%) | 96.7 | 2.6 | 0.6 | 0 | 10.0 | 33.3 | 60.8 | 81.7 | 14.3 | 3.9 | 0 |
| Congress | 472 | 18 (3.8%) | 14 | 2 | 2 | 0 | 12/18 | 16/18 | - | - | - | - | - |
TABLE XVIII TOLERANCE SCALING: EVERY TOLERANCE MULTIPLIED BY .
| LCC (%) | Proven (%) | Size | Queries without LCC | Kept (%) | Gained (%) | Pairs that co-visit | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| A | B | C | U | Share (%) | vs. (pp) | |||||||
| Gowalla (15,829 queries) | ||||||||||||
| 0.5 | 7.9 | 100.0 | 9 | 14,204 | 244 | 129 | 0 | 50.7 (0.58) | - | 11.12 | +3.73 [3.15,4.40] | |
| 0.67 | 10.5 | 100.0 | 10 | 13,617 | 392 | 159 | 0 | 67.3 (0.67) | - | 9.44 | +1.86 [1.52,2.26] | |
| 0.8 | 12.5 | 100.0 | 11 | 13,237 | 424 | 194 | 0 | 80.0 (0.82) | - | 8.84 | +1.30 [1.03,1.59] | |
| 1 | 15.6 | 100.0 | 16 | 12,691 | 423 | 246 | 0 | - | - | 8.42 | - | |
| 1.25 | 19.3 | 100.0 | 22 | 11,942 | 557 | 270 | 0 | - | 4.4 | 7.33 | -1.29 [-1.57,-1.03] | |
| 1.5 | 22.7 | 100.0 | 27 | 11,431 | 552 | 252 | 0 | - | 8.4 | 6.67 | -2.18 [-2.51,-1.87] | |
| 2 | 27.3 | 100.0 | 40 | 10,657 | 583 | 274 | 0 | - | 13.8 | 5.93 | -3.09 [-3.50,-2.69] | |
| 3 | 33.9 | 100.0 | 53 | 9,683 | 563 | 224 | 0 | - | 21.6 | 5.13 | -3.84 [-4.28,-3.41] | |
| Brightkite (5,260 queries) | ||||||||||||
| 0.5 | 4.5 | 100.0 | 8 | 4,970 | 48 | 6 | 0 | 51.1 (0.78) | - | 8.58 | +1.18 [0.34,2.13] | |
| 0.67 | 5.9 | 100.0 | 8 | 4,849 | 77 | 22 | 0 | 67.5 (0.80) | - | 7.56 | +0.68 [0.18,1.21] | |
| 0.8 | 7.1 | 100.0 | 8 | 4,762 | 106 | 21 | 0 | 80.3 (0.89) | - | 6.44 | +0.24 [-0.08,0.59] | |
| 1 | 8.8 | 100.0 | 10 | 4,640 | 127 | 31 | 0 | - | - | 5.67 | - | |
| 1.25 | 11.0 | 100.0 | 12 | 4,473 | 146 | 62 | 0 | - | 2.4 | 4.32 | -1.35 [-1.91,-0.85] | |
| 1.5 | 12.9 | 100.0 | 13 | 4,326 | 172 | 85 | 0 | - | 4.5 | 3.60 | -2.11 [-2.74,-1.52] | |
| 2 | 17.1 | 100.0 | 16 | 4,088 | 175 | 95 | 0 | - | 9.2 | 3.15 | -3.19 [-4.18,-2.32] | |
| 3 | 23.5 | 100.0 | 24 | 3,746 | 186 | 92 | 0 | - | 16.1 | 2.52 | -3.75 [-4.80,-2.79] | |
TABLE XIX OPEN LCC GROUPS: LOSSES AND FINAL OPINION CLUSTERS.
| Gowalla | Brightkite | Congress | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0.01 | 0.1 | 1 | 0.01 | 0.1 | 1 | 0.01 | 0.1 | 1 | obs. | |
| Groups that lose an interaction (%) | 34.1 | 48.4 | 65.2 | 22.5 | 37.7 | 62.1 | 0 | 0 | 80.6 | 98.2 |
| lost share (median, %) | 4.0 | 8.5 | 11.0 | 0.4 | 11.8 | 10.8 | - | - | 2.1 | 5.3 |
| first loss (median step) | 1 | 1 | 1 | 1 | 1 | 1 | - | - | 2 | 1 |
| Largest final cluster (mean, %) | 23.5 | 17.7 | 16.8 | 24.0 | 18.0 | 18.8 | 71.6 | 11.8 | 5.2 | 3.9 |
| Largest cluster, LCC – size-matched SAC (pp) | -1.0 | +0.8 | +0.9 | -1.4 | +0.4 | +0.3 | -4.7 | -1.5 | -0.3 | -0.4 |
| 95% CI | [-1.7,-0.3] | [0.4,1.2] | [0.5,1.2] | [-2.4,-0.3] | [-0.0,0.9] | [-0.1,0.7] | [-6.4,-3.1] | [-2.3,-0.8] | [-0.4,-0.1] | [-0.5,-0.3] |
on Brightkite at . Class A dominates queries without an LCC at every . Shrinking tolerances also protects against noisy estimates: with tolerance noise in equal-weight HK on (10 runs; a separate run on all LCC groups, with different random draws from those in Table VI), 1.17% [0.82, 1.68] of the Gowalla and 3.68% [2.31, 5.81] of the Brightkite LCC groups at lose an interaction accepted at the start, against 0% [0, 0.19] and 1.08% [0.42, 2.74] at (Wilson intervals; without noise, none does).
K. Open Groups at Group Level
Table XIX covers the LCC groups of Table VI on Gowalla and Brightkite and the 454 LCC groups on Congress, when each accepted outside friend has weight or, on Congress, a weight proportional to the observed interactions (obs.). It gives the lost share of the interactions accepted at the start, in groups that lose one, and the largest final opinion cluster, by single linkage at of the initial diameter after at most 300 steps (closed groups: 99.7–100%); its last rows give LCC minus size-matched SAC in this cluster, as an exploratory comparison (closed groups: +1.6, +1.7 and 0 pp). Interaction loss and group-wide convergence are separate outcomes: open groups lose only a small share of interactions, usually early. Except on Congress at , open groups also fail to reach a common opinion whether or not they lose an interaction: members stay spread between the outside friends they average with, so the largest final cluster holds a minority of the members of LCC groups that lose no interaction as well (22–35% on Gowalla and Brightkite), and on Congress at , where no LCC group loses an interaction, only 11.8%. Pairwise groups, size-matched SAC groups and -cores at also have largest final clusters of 15–28%. Paired differences relative to size-matched SAC vary in sign, so open LCC groups have no consistent group-level advantage.
AI-GENERATED CONTENT ACKNOWLEDGEMENT
We used Anthropic Claude Opus 5.5 to debug and test code, and OpenAI GPT-6 Astra to polish the manuscript.
REFERENCES
[1] M. Sozio and A. Gionis, “The community-search problem and how to plan a successful cocktail party,” in KDD, 2010, pp. 939–948.
[2] Y. Fang, X. Huang, L. Qin, Y. Zhang, W. Zhang, R. Cheng, and X. Lin, "A survey of community search over big graphs," The VLDB Journal, vol. 29, no. 1, pp. 353–392, 2020.
[3] F. Zhang, Y. Zhang, L. Qin, W. Zhang, and X. Lin, “When engagement meets similarity: Efficient -core computation on social networks,” PVLDB, vol. 10, no. 10, pp. 998–1009, 2017.
[4] K. Wang, X. Cao, X. Lin, W. Zhang, and L. Qin, “Efficient computing of radius-bounded k-cores,” in ICDE, 2018, pp. 233–244.
[5] L. Chen, C. Liu, R. Zhou, J. Li, X. Yang, and B. Wang, “Maximum co-located community search in large scale social networks,” PVLDB, vol. 11, no. 10, pp. 1233–1246, 2018.
[6] Y. Fang, R. Cheng, X. Li, S. Luo, and J. Hu, “Effective community search over large spatial graphs,” PVLDB, vol. 10, no. 6, pp. 709–720, 2017.
[7] Q. Liu, Y. Zhu, M. Zhao, X. Huang, J. Xu, and Y. Gao, "VAC: Vertex-centric attributed community search," in ICDE, 2020, pp. 937–948.
[8] M. Sherif and C. I. Hovland, Social Judgment: Assimilation and Contrast Effects in Communication and Attitude Change. Yale University Press, 1961.
[9] R. Hegselmann and U. Krause, “Opinion dynamics and bounded confidence: Models, analysis and simulation,” J. Artif. Soc. Soc. Simul., vol. 5, no. 3, 2002.
[10] J. Lorenz, “Heterogeneous bounds of confidence: Meet, discuss and find consensus!” Complexity, vol. 15, no. 4, pp. 43–52, 2010.
[11] W. Cui, Y. Xiao, H. Wang, and W. Wang, “Local search of communities in large graphs,” in SIGMOD, 2014, pp. 991–1002.
[12] X. Huang, H. Cheng, L. Qin, W. Tian, and J. X. Yu, “Querying k-truss community in large and dynamic graphs,” in SIGMOD, 2014, pp. 1311–1322.
[13] Y. Fang, R. Cheng, S. Luo, and J. Hu, “Effective community search for large attributed graphs,” PVLDB, vol. 9, no. 12, pp. 1233–1244, 2016.
[14] F. Guo, X. Luo, S. Xu, H. Gao, Y. Liu, H. Shen, and X. Cheng, “Skyline community search over edge-attributed bipartite graphs,” in DASFAA, ser. LNCS, vol. 16536. Springer, 2026, pp. 367–383.
[15] Y. Fang, Y. Yang, W. Zhang, X. Lin, and X. Cao, “Effective and efficient community search over large heterogeneous information networks,” PVLDB, vol. 13, no. 6, pp. 854–867, 2020.
[16] Y. Liu, F. Guo, B. Xu, P. Bao, H. Shen, and X. Cheng, “SACH: Significant-attributed community search in heterogeneous information networks,” in ICDE, 2024, pp. 3283–3296.
[17] G. Chen, F. Guo, Y. Wang, Y. Liu, P. Yu, H. Shen, and X. Cheng, "FCS-HGNN: Flexible multi-type community search in heterogeneous information networks," in CIKM, 2024, pp. 207–217.
[18] C.-Y. Shen, S.-H. Ko, G.-S. Lee, W.-C. Lee, and D.-N. Yang, “Density personalized group query,” PVLDB, vol. 16, no. 4, pp. 615–628, 2022.
[19] Y. Liu, F. Guo, H. Shen, and X. Cheng, “Rethinking community consistency in heterogeneous networks,” in CIKM, 2026, to appear.
[20] F. Bonchi, E. Galimberti, A. Gionis, B. Ordozgoiti, and G. Ruffo, “Discovering polarized communities in signed networks,” in CIKM, 2019, pp. 961–970.
[21] B. Ordozgoiti, A. Matakos, and A. Gionis, “Finding large balanced subgraphs in signed networks,” in WWW, 2020, pp. 1378–1388.
[22] D.-N. Yang, C.-Y. Shen, W.-C. Lee, and M.-S. Chen, “On socio-spatial group query for location-based social networks,” in KDD, 2012, pp. 949–957.
[23] Q. Zhu, H. Hu, C. Xu, J. Xu, and W.-C. Lee, “Geo-social group queries with minimum acquaintance constraints,” The VLDB Journal, vol. 26, no. 5, pp. 709–727, 2017.
[24] Q. Li, Y. Zhu, and J. X. Yu, “Skyline cohesive group queries in large road-social networks,” in ICDE, 2020, pp. 397–408.
[25] F. Guo, Y. Yuan, G. Wang, L. Chen, X. Lian, and Z. Wang, “Cohesive group nearest neighbor queries over road-social networks,” in ICDE, 2019, pp. 434–445.
[26] —, “Cohesive group nearest neighbor queries on road-social networks under multi-criteria,” IEEE Trans. Knowl. Data Eng., vol. 33, no. 11, pp. 3520–3536, 2021.
[27] F. Guo, Y. Yuan, G. Wang, X. Zhao, and H. Sun, “Multi-attributed community search in road-social networks,” in ICDE, 2021, pp. 109–120.
[28] S. Amer-Yahia, S. Basu Roy, A. Chawla, G. Das, and C. Yu, “Group recommendation: Semantics and efficiency,” PVLDB, vol. 2, no. 1, pp. 754–765, 2009.
[29] S. Basu Roy, L. V. S. Lakshmanan, and R. Liu, “From group recommendations to group formation,” in SIGMOD, 2015, pp. 1603–1616.
[30] M. H. DeGroot, “Reaching a consensus,” J. Am. Stat. Assoc., vol. 69, no. 345, pp. 118–121, 1974.
[31] N. E. Friedkin and E. C. Johnsen, “Social influence and opinions,” J. Math. Sociol., vol. 15, no. 3–4, pp. 193–206, 1990.
[32] G. Deffuant, D. Neuau, F. Amblard, and G. Weisbuch, “Mixing beliefs among interacting agents,” Advances in Complex Systems, vol. 3, no. 1–4, pp. 87–98, 2000.
[33] A. Mirtatabatabai and F. Bullo, “Opinion dynamics in heterogeneous networks: Convergence conjectures and theorems,” SIAM J. Control Optim., vol. 50, no. 5, pp. 2763–2785, 2012.
[34] W. Su, Y. Gu, S. Wang, and Y. Yu, “Partial convergence of heterogeneous Hegselmann-Krause opinion dynamics,” Sci. China Technol. Sci., vol. 60, no. 9, pp. 1433–1438, 2017.
[35] R. Hegselmann and U. Krause, “Opinion dynamics under the influence of radical groups, charismatic leaders, and other constant signals: A simple unifying model,” Netw. Heterog. Media, vol. 10, no. 3, pp. 477–509, 2015.
[36] W. Jager and F. Amblard, “Uniformity, bipolarization and pluriformity captured as generic stylized behavior with an agent-based simulation model of attitude change,” Comput. Math. Organ. Theory, vol. 10, no. 4, pp. 295–303, 2005.
[37] C. Monti, G. De Francisci Morales, and F. Bonchi, “Learning opinion dynamics from social traces,” in KDD, 2020, pp. 764–773.
[38] Y. Luan, C. Ancona, C. Bernardo, V. PansANELA, F. Lo Iudice, G. Rossetti, F. Vasca, X. Wu, and C. Altafini, “Quantifying opinion homophily in online social networks: A bounded confidence perspective,” arXiv:2604.23157, 2026.
[39] T. Lappas, K. Liu, and E. Terzi, “Finding a team of experts in social networks,” in KDD, 2009, pp. 467–476.
[40] S. B. Seidman, “Network structure and minimum degree,” Social Networks, vol. 5, no. 3, pp. 269–287, 1983.
[41] V. Batagelj and M. Zaveršnik, “An algorithm for cores decomposition of networks,” arXiv:cs/0310049, 2003.
[42] L. Moreau, “Stability of multiagent systems with time-dependent communication links,” IEEE Trans. Autom. Control, vol. 50, no. 2, pp. 169–182, 2005.
[43] R. M. Karp, “Reducibility among combinatorial problems,” in Complexity of Computer Computations. Plenum Press, 1972, pp. 85–103.
[44] D. Zuckerman, “Linear degree extractors and the inapproximability of max clique and chromatic number,” Theory of Computing, vol. 3, pp. 103–128, 2007.
[45] H. Maehara, “Space graphs and sphericity,” Discrete Applied Mathematics, vol. 7, no. 1, pp. 55–64, 1984.
[46] B. N. Clark, C. J. Colbourn, and D. S. Johnson, “Unit disk graphs,” Discrete Mathematics, vol. 86, no. 1–3, pp. 165–177, 1990.
[47] M. Bonamy, É. Bonnet, N. Bousquet, P. Charbit, P. Giannopoulos, E. J. Kim, P. Rzażewski, F. Sikora, and S. Thomassé, “EPTAS and subexponential algorithm for maximum clique on disk and unit ball graphs,” J. ACM, vol. 68, no. 2, 2021, article 9.
[48] E. Tomita and T. Seki, “An efficient branch-and-bound algorithm for finding a maximum clique,” in DMTCS, ser. LNCS, vol. 2731. Springer, 2003, pp. 278–289.
[49] E. Cho, S. A. Myers, and J. Leskovec, “Friendship and mobility: User movement in location-based social networks,” in KDD, 2011, pp. 1082–1090.
[50] J. Yang and J. Leskovec, “Defining and evaluating network communities based on ground-truth,” in ICDM, 2012, pp. 745–754.
[51] L. Takac and M. Zabovsky, “Data analysis in public social networks,” in Proc. Int. Scientific Conf. & Int. Workshop Present Day Trends of Innovations, Lomza, Poland, May 2012.
[52] J. Leskovec and A. Krevl, “SNAP Datasets: Stanford large network dataset collection,” http://snap.stanford.edu/data, Jun. 2014.
[53] U. N. Raghavan, R. Albert, and S. Kumara, "Near linear time algorithm to detect community structures in large-scale networks," Physical Review E, vol. 76, no. 3, p. 036106, 2007.
[54] Q. Huangfu and J. A. J. Hall, "Parallelizing the dual revised simplex method," Math. Program. Comput., vol. 10, no. 1, pp. 119–142, 2018.
[55] Google, "OR-Tools, version 9.15, with the CP-SAT solver," https://developers.google.com/optimization/, 2026.
[56] Yelp, "Yelp Open Dataset," https://www.yelp.com/dataset, 2022, accessed 2026.
[57] K. T. Poole and H. Rosenthal, Ideology and Congress, 2nd ed. New Brunswick, NJ: Transaction Publishers, 2007.
[58] J. B. Lewis, K. Poole, H. Rosenthal, A. Boche, A. Rudkin, and L. Sonnet, "Voteview: Congressional Roll-Call Votes Database," https://voteview.com/, 2026.
[59] U.S. Government Publishing Office, "Bill status (BILLSTATUS) bulk data, 117th Congress," https://www.govinfo.gov/bulkdata/BILLSTATUS, 2026, accessed Oct. 2026.
[60] C. G. Fink, N. Omodt, S. Zinnecker, and G. Sprint, "A Congressional Twitter network dataset quantifying pairwise probability of influence," Data Brief, vol. 50, 2023, Art. no. 109521.
[61] C. G. Fink, K. Fullin, G. Gutierrez, N. Omodt, S. Zinnecker, G. Sprint, and S. McCulloch, "A centrality measure for quantifying spread on weighted, directed networks," Physica A, vol. 626, 2023, Art. no. 129083.
[62] D. Cherepalkoski, A. Karpf, I. Mozetič, and M. Grčar, "Cohesion and coalition formation in the European Parliament: Roll-call votes and Twitter activities," PLoS ONE, vol. 11, no. 11, 2016, Art. no. e0166586; data: CLARIN.SI 11356/1071.