TY - GEN
T1 - Comparative Study of Node-to-Vector Embedding Approach for Graph-based Code Clone Detection
AU - Retnani, Windi Eka Yulia
AU - Siahaan, Daniel
AU - Rachmadi, Hilmi Zharfan
AU - Radam, Fajra Hanifa Nuridi
AU - Widyadhari, Shabira
AU - Asmani, Anani
N1 - Publisher Copyright:
© 2026 IEEE.
PY - 2026
Y1 - 2026
N2 - 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.
AB - 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.
KW - Code Clone Detection
KW - Global Graph
KW - Program Dependence Graph
KW - node-to-vector Embedding
UR - https://www.scopus.com/pages/publications/105045282626
U2 - 10.1109/JCSSE68839.2026.11596756
DO - 10.1109/JCSSE68839.2026.11596756
M3 - Conference contribution
AN - SCOPUS:105045282626
T3 - Proceedings - 23rd International Joint Conference on Computer Science and Software Engineering, JCSSE 2026
SP - 924
EP - 929
BT - Proceedings - 23rd International Joint Conference on Computer Science and Software Engineering, JCSSE 2026
PB - Institute of Electrical and Electronics Engineers Inc.
T2 - 23rd International Joint Conference on Computer Science and Software Engineering, JCSSE 2026
Y2 - 24 June 2026 through 27 June 2026
ER -