{"doi":"10.1007/s00366-025-02223-y","title":"MAGNET: an open-source library for mesh agglomeration by graph neural networks","abstract":"Abstract We introduce , an open-source Python library designed for mesh agglomeration in both two- and three-dimensions, based on employing Graph Neural Networks (GNN). serves as a comprehensive solution for training a variety of GNN models, integrating deep learning and other advanced algorithms such as METIS and k-means to facilitate mesh agglomeration and quality metric computation. The library’s introduction is outlined through its code structure and primary features. The GNN framework adopts a graph bisection methodology that capitalizes on connectivity and geometric mesh information via SAGE convolutional layers, in line with the methodology proposed in (Antonietti and Manuzzi in J Comput Phys 452:110900, 2022; Antonietti et al. in Polytopal mesh agglomeration via geometrical deep learning for three-dimensional heterogeneous domains, arXiv:2406.10587 , 2024). Additionally, the proposed library incorporates reinforcement learning to enhance the accuracy and robustness of the model initially suggested in [1, 2] for predicting coarse partitions within a multilevel framework. A detailed tutorial is provided to guide the user through the process of mesh agglomeration and the training of a GNN bisection model. We present several examples of mesh agglomeration conducted by , demonstrating the library’s applicability across various scenarios. Furthermore, the performance of the newly introduced models is contrasted with that of METIS and k-means, illustrating that the proposed GNN models are competitive regarding partition quality and computational efficiency. Finally, we exhibit the versatility of ’s interface through its integration with , an open-source library implementing discontinuous Galerkin methods on polytopal grids for the numerical discretization of multiphysics differential problems.","journal":"Engineering With Computers","year":2025,"id":536982,"datarank":0.0,"base_score":0.0,"endowment":0.0,"self_citation_contribution":0.0,"citation_network_contribution":0.0,"self_endowment_contribution":0.0,"citer_contribution":0.0,"corpus_percentile":null,"corpus_rank":null,"citation_count":1,"citer_count":0,"citers_with_citation_signal":0,"citers_with_endowment":0,"datacite_reuse_total":0,"is_dataset":false,"is_dataset_confidence":0.931,"is_data_producer":false,"deposit_databanks":null,"is_oa":true,"file_count":0,"downloads":0,"has_version_chain":false,"published_date":"2025-01-01","fair_score":null,"fair_percentile":null,"algorithm_id":"datarank_citation_only_1hop_v6","ranking_scope":"data_only","authors":[{"id":1422315,"name":"Matteo Caldana","orcid":"0009-0008-0671-4721","position":1,"is_corresponding":false},{"id":1422316,"name":"Ilario Mazzieri","orcid":"0000-0003-4121-8092","position":2,"is_corresponding":false},{"id":1422799,"name":"Andrea Re Fraschini","orcid":null,"position":3,"is_corresponding":false},{"id":1047339,"name":"Paola F. Antonietti","orcid":"0000-0002-2138-3878","position":0,"is_corresponding":true}],"reference_count":36,"raw_metadata":null,"created_at":"2026-07-19T02:52:09.056872Z","pmid":null,"pmcid":null,"fwci":null,"citation_percentile":null,"influential_citations":0,"oa_status":null,"license":null,"views":0,"total_file_size_bytes":0,"version_count":0,"fair_f":null,"fair_a":null,"fair_i":null,"fair_r":null,"fair_zscore":null,"fair_rationale":null,"fair_model":null,"fair_agent_version":null,"fair_fulltext_source":null,"fair_has_llm":null,"fair_computed_at":null,"clinical_trials":[],"software_tools":[],"db_accessions":[],"linked_datasets":[],"topics":[]}