{"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/digrac-digraph-clustering-with-flow-imbalance","title":"DIGRAC: Digraph Clustering Based on Flow Imbalance","arxiv_id":"2106.05194","date":"2021-06-09","proceeding":null,"authors":["Yixuan He","Gesine Reinert","Mihai Cucuringu"],"abstract":"Node clustering is a powerful tool in the analysis of networks. We introduce a graph neural network framework, named DIGRAC, to obtain node embeddings for directed networks in a self-supervised manner, including a novel probabilistic imbalance loss, which can be used for network clustering. Here, we propose \\textit{directed flow imbalance} measures, which are tightly related to directionality, to reveal clusters in the network even when there is no density difference between clusters. In contrast to standard approaches in the literature, in this paper, directionality is not treated as a nuisance, but rather contains the main signal. DIGRAC optimizes directed flow imbalance for clustering without requiring label supervision, unlike existing graph neural network methods, and can naturally incorporate node features, unlike existing spectral methods. Extensive experimental results on synthetic data, in the form of directed stochastic block models, and real-world data at different scales, demonstrate that our method, based on flow imbalance, attains state-of-the-art results on directed graph clustering when compared against 10 state-of-the-art methods from the literature, for a wide range of noise and sparsity levels, graph structures, and topologies, and even outperforms supervised methods.","url_abs":"https://arxiv.org/abs/2106.05194v8","url_pdf":"https://arxiv.org/pdf/2106.05194v8.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":"digrac-digraph-clustering-with-flow-imbalance","repo_url":"https://github.com/sherylhyx/digrac_directed_clustering","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"clustering","task_name":"Clustering"},{"task_slug":"graph-clustering","task_name":"Graph Clustering"},{"task_slug":"graph-neural-network","task_name":"Graph Neural Network"},{"task_slug":"node-clustering","task_name":"Node Clustering"}],"methods":[{"method_slug":"graph-neural-network","method_name":"Graph Neural Network"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2106.05194","atlas_url":"https://app.syntology.ai/?focus=2106.05194","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.05194"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sherylhyx/digrac_directed_clustering","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":8,"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":"c75973dbd108b9c5","entry":"directed_features_in_out","repo":"sherylhyx/digrac_directed_clustering","repo_kind":"official","path":"src/features_in_out.py","file_url":"https://github.com/sherylhyx/digrac_directed_clustering/blob/HEAD/src/features_in_out.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":"c75973dbd108b9c5"}},{"code_sha256_prefix":"3ef484b13cf6fc4e","entry":"extract_network","repo":"sherylhyx/digrac_directed_clustering","repo_kind":"official","path":"src/extract_network.py","file_url":"https://github.com/sherylhyx/digrac_directed_clustering/blob/HEAD/src/extract_network.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":"3ef484b13cf6fc4e"}},{"code_sha256_prefix":"91473a13f6e39d11","entry":"fast_appr","repo":"sherylhyx/digrac_directed_clustering","repo_kind":"official","path":"src/cal_fast_pagerank.py","file_url":"https://github.com/sherylhyx/digrac_directed_clustering/blob/HEAD/src/cal_fast_pagerank.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":"91473a13f6e39d11"}},{"code_sha256_prefix":"4f6fedbd8d5c157b","entry":"fast_appr_power","repo":"sherylhyx/digrac_directed_clustering","repo_kind":"official","path":"src/cal_fast_pagerank.py","file_url":"https://github.com/sherylhyx/digrac_directed_clustering/blob/HEAD/src/cal_fast_pagerank.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":"4f6fedbd8d5c157b"}},{"code_sha256_prefix":"6b1810fc47152a07","entry":"label_classification","repo":"sherylhyx/digrac_directed_clustering","repo_kind":"official","path":"src/eval_digcl.py","file_url":"https://github.com/sherylhyx/digrac_directed_clustering/blob/HEAD/src/eval_digcl.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":"6b1810fc47152a07"}},{"code_sha256_prefix":"ea73d705528dd3b5","entry":"prob_to_one_hot","repo":"sherylhyx/digrac_directed_clustering","repo_kind":"official","path":"src/eval_digcl.py","file_url":"https://github.com/sherylhyx/digrac_directed_clustering/blob/HEAD/src/eval_digcl.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":"ea73d705528dd3b5"}},{"code_sha256_prefix":"684b8ea4814fa952","entry":"repeat","repo":"sherylhyx/digrac_directed_clustering","repo_kind":"official","path":"src/eval_digcl.py","file_url":"https://github.com/sherylhyx/digrac_directed_clustering/blob/HEAD/src/eval_digcl.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":"684b8ea4814fa952"}},{"code_sha256_prefix":"89b549fa17dd95ab","entry":"sqrtinvdiag","repo":"sherylhyx/digrac_directed_clustering","repo_kind":"official","path":"src/comparison.py","file_url":"https://github.com/sherylhyx/digrac_directed_clustering/blob/HEAD/src/comparison.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":"89b549fa17dd95ab"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}