Skip to main navigation Skip to search Skip to main content

Comparative Study of Node-to-Vector Embedding Approach for Graph-based Code Clone Detection

  • Windi Eka Yulia Retnani
  • , Daniel Siahaan*
  • , Hilmi Zharfan Rachmadi
  • , Fajra Hanifa Nuridi Radam
  • , Shabira Widyadhari
  • , Anani Asmani
  • *Corresponding author for this work
  • Institut Teknologi Sepuluh Nopember

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

Abstract

Finding semantically similar code fragments is not easy in software engineering. Identifying these clones improves code quality, makes it easier to keep up with, and makes inconsistencies less likely. This study examines the effectiveness of graph-based methodologies for semantic clone detection by contrasting two graph representations: the Global Graph and the Program Dependence Graph (PDG). Four node-to-vector embedding methods were used on these two graph representations: Node2Vec, ProNE, GGVec, and GloVe. We used these methods on the IR-Plag dataset and compared the embedded vectors using cosine similarity. We used the F-measure as the main way to measure the dataset because it wasn't balanced. The experimental results show that Node2Vec consistently outperforms all other methods, especially when the embedding dimension is 32, by getting the highest F-measure and accuracy. ProNE showed moderate but steady performance across dimensions, while GGVec and GloVe were not as good. These results highlight the significance of the foundational graph representation and the chosen embedding technique for semantic clone detection.

Original languageEnglish
Title of host publicationProceedings - 23rd International Joint Conference on Computer Science and Software Engineering, JCSSE 2026
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages924-929
Number of pages6
ISBN (Electronic)9798331582005
DOIs
Publication statusPublished - 2026
Event23rd International Joint Conference on Computer Science and Software Engineering, JCSSE 2026 - Bangkok, Thailand
Duration: 24 Jun 2026 → 27 Jun 2026

Publication series

NameProceedings - 23rd International Joint Conference on Computer Science and Software Engineering, JCSSE 2026

Conference

Conference23rd International Joint Conference on Computer Science and Software Engineering, JCSSE 2026
Country/TerritoryThailand
CityBangkok
Period24/06/26 → 27/06/26

Keywords

  • Code Clone Detection
  • Global Graph
  • Program Dependence Graph
  • node-to-vector Embedding

Fingerprint

Dive into the research topics of 'Comparative Study of Node-to-Vector Embedding Approach for Graph-based Code Clone Detection'. Together they form a unique fingerprint.

Cite this