{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/local-algorithms-for-finding-densely","title":"Local Algorithms for Finding Densely Connected Clusters","arxiv_id":"2106.05245","date":"2021-06-09","proceeding":null,"authors":["Peter Macgregor","He Sun"],"abstract":"Local graph clustering is an important algorithmic technique for analysing massive graphs, and has been widely applied in many research fields of data science. While the objective of most (local) graph clustering algorithms is to find a vertex set of low conductance, there has been a sequence of recent studies that highlight the importance of the inter-connection between clusters when analysing real-world datasets. Following this line of research, in this work we study local algorithms for finding a pair of vertex sets defined with respect to their inter-connection and their relationship with the rest of the graph. The key to our analysis is a new reduction technique that relates the structure of multiple sets to a single vertex set in the reduced graph. Among many potential applications, we show that our algorithms successfully recover densely connected clusters in the Interstate Disputes Dataset and the US Migration Dataset.","url_abs":"https://arxiv.org/abs/2106.05245v1","url_pdf":"https://arxiv.org/pdf/2106.05245v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"local-algorithms-for-finding-densely","repo_url":"https://github.com/pmacg/local-densely-connected-clusters","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"clustering","task_name":"Clustering"},{"task_slug":"graph-clustering","task_name":"Graph Clustering"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2106.05245","atlas_url":"https://app.syntology.ai/?focus=2106.05245","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.05245"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/pmacg/local-densely-connected-clusters","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":15},"by_repo_kind":{"official":{"samples":15,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"e1737d8b1e0223d9","entry":"MQI","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/MQI.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/MQI.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e1737d8b1e0223d9"}},{"code_sha256_prefix":"a3be98a2ac73b7e5","entry":"MQI_weighted","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/MQI_weighted.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/MQI_weighted.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a3be98a2ac73b7e5"}},{"code_sha256_prefix":"f3ee78284e072922","entry":"SimpleLocal","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/SimpleLocal.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/SimpleLocal.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f3ee78284e072922"}},{"code_sha256_prefix":"5b7985e7d25d8368","entry":"SimpleLocal_weighted","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/SimpleLocal_weighted.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/SimpleLocal_weighted.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5b7985e7d25d8368"}},{"code_sha256_prefix":"25afa867451dfa44","entry":"acl_list","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/algorithms/acl_list.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/algorithms/acl_list.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"25afa867451dfa44"}},{"code_sha256_prefix":"8bebfc6664287a78","entry":"compute_embedding","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/find_clusters.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/find_clusters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8bebfc6664287a78"}},{"code_sha256_prefix":"2f40ada12f80b4c5","entry":"compute_embedding_and_improve","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/find_clusters.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/find_clusters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2f40ada12f80b4c5"}},{"code_sha256_prefix":"3bc99562f219b3ab","entry":"eig2nL_subgraph","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/algorithms/eig_nL.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/algorithms/eig_nL.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3bc99562f219b3ab"}},{"code_sha256_prefix":"0bd42037d5751844","entry":"eig_nL","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/algorithms/eig_nL.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/algorithms/eig_nL.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0bd42037d5751844"}},{"code_sha256_prefix":"240e3c7e162a8bd2","entry":"evo_cut_directed","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/find_bipartite_clusters.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/find_bipartite_clusters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"240e3c7e162a8bd2"}},{"code_sha256_prefix":"56e5317203aecca6","entry":"find_clusters","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/find_clusters.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/find_clusters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"56e5317203aecca6"}},{"code_sha256_prefix":"2a003b58e847d218","entry":"idx_from_cluster_idx","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/stochastic_block_model.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/stochastic_block_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2a003b58e847d218"}},{"code_sha256_prefix":"921c9fe10dabbcfd","entry":"local_bipartite_dc","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/find_bipartite_clusters.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/find_bipartite_clusters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"921c9fe10dabbcfd"}},{"code_sha256_prefix":"4c8c39f3a5fdcba7","entry":"lp_almost_bipartite","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"localgraphclustering/find_bipartite_clusters.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/localgraphclustering/find_bipartite_clusters.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4c8c39f3a5fdcba7"}},{"code_sha256_prefix":"e6d355edc09c35ec","entry":"simplify","repo":"pmacg/local-densely-connected-clusters","repo_kind":"official","path":"example.py","file_url":"https://github.com/pmacg/local-densely-connected-clusters/blob/HEAD/example.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e6d355edc09c35ec"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}