arXiv 2504.10412

AI-Driven Code Refactoring: Using Graph Neural Networks to Enhance Software Maintainability

By Gopichand Bandarupalli

Published 2025-04-14

Citation lineage

Review the prior work and downstream research connected to this paper.

This study explores Graph Neural Networks (GNNs) as a transformative tool for code refactoring, using abstract syntax trees (ASTs) to boost software maintainability. It analyzes a dataset of 2 million snippets from CodeSearchNet and a custom 75000-file GitHub Python corpus, comparing GNNs against rule-based SonarQube and decision trees. Metrics include cyclomatic complexity (target below 10), coupling (target below…

View the original paper on arXiv