{"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/pytorch-geometric-signed-directed-a-survey","title":"PyTorch Geometric Signed Directed: A Software Package on Graph Neural Networks for Signed and Directed Graphs","arxiv_id":"2202.10793","date":"2022-02-22","proceeding":null,"authors":["Yixuan He","Xitong Zhang","JunJie Huang","Benedek Rozemberczki","Mihai Cucuringu","Gesine Reinert"],"abstract":"Networks are ubiquitous in many real-world applications (e.g., social networks encoding trust/distrust relationships, correlation networks arising from time series data). While many networks are signed or directed, or both, there is a lack of unified software packages on graph neural networks (GNNs) specially designed for signed and directed networks. In this paper, we present PyTorch Geometric Signed Directed (PyGSD), a software package which fills this gap. Along the way, we evaluate the implemented methods with experiments with a view to providing insights into which method to choose for a given task. The deep learning framework consists of easy-to-use GNN models, synthetic and real-world data, as well as task-specific evaluation metrics and loss functions for signed and directed networks. As an extension library for PyG, our proposed software is maintained with open-source releases, detailed documentation, continuous integration, unit tests and code coverage checks. The GitHub repository of the library is https://github.com/SherylHYX/pytorch_geometric_signed_directed.","url_abs":"https://arxiv.org/abs/2202.10793v6","url_pdf":"https://arxiv.org/pdf/2202.10793v6.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":"pytorch-geometric-signed-directed-a-survey","repo_url":"https://github.com/sherylhyx/pytorch_geometric_signed_directed","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series","task_name":"Time Series Analysis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2202.10793","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2202.10793"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/pytorch_geometric_signed_directed","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":4},"by_repo_kind":{"official":{"samples":4,"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":"130ac34bfc42892d","entry":"extract_network","repo":"sherylhyx/pytorch_geometric_signed_directed","repo_kind":"official","path":"torch_geometric_signed_directed/utils/general/extract_network.py","file_url":"https://github.com/sherylhyx/pytorch_geometric_signed_directed/blob/HEAD/torch_geometric_signed_directed/utils/general/extract_network.py","link_basis":"harvester_set","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":"130ac34bfc42892d"}},{"code_sha256_prefix":"ba41b4b91578d01f","entry":"get_magnetic_Laplacian","repo":"sherylhyx/pytorch_geometric_signed_directed","repo_kind":"official","path":"torch_geometric_signed_directed/utils/directed/get_magnetic_Laplacian.py","file_url":"https://github.com/sherylhyx/pytorch_geometric_signed_directed/blob/HEAD/torch_geometric_signed_directed/utils/directed/get_magnetic_Laplacian.py","link_basis":"harvester_set","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":"ba41b4b91578d01f"}},{"code_sha256_prefix":"5f85eb18756b2367","entry":"get_magnetic_signed_Laplacian","repo":"sherylhyx/pytorch_geometric_signed_directed","repo_kind":"official","path":"torch_geometric_signed_directed/utils/general/get_magnetic_signed_Laplacian.py","file_url":"https://github.com/sherylhyx/pytorch_geometric_signed_directed/blob/HEAD/torch_geometric_signed_directed/utils/general/get_magnetic_signed_Laplacian.py","link_basis":"harvester_set","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":"5f85eb18756b2367"}},{"code_sha256_prefix":"817bf49e8ed25f4a","entry":"triplet_loss_node_classification","repo":"sherylhyx/pytorch_geometric_signed_directed","repo_kind":"official","path":"torch_geometric_signed_directed/utils/general/triplet_loss.py","file_url":"https://github.com/sherylhyx/pytorch_geometric_signed_directed/blob/HEAD/torch_geometric_signed_directed/utils/general/triplet_loss.py","link_basis":"harvester_set","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":"817bf49e8ed25f4a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}