{"title":"基于复杂网络的死码评估方法","authors":"Xinwei Liu, Chuanqi Tao","doi":"10.1109/QRS-C57518.2022.00069","DOIUrl":null,"url":null,"abstract":"Dead code is widespread in open-source and commercial software systems. While there is some work on dead code detection, there is no work on evaluating the risk of removing dead code. This paper introduces complex network into dead code evaluation and proposes a dead code evaluation method based on weighted technique for order preference by similarity to ideal solution(TOPSIS). We regard degree centrality, closeness centrality, betweeness centrality and the proportion of alive codes as the multi-attribute of weighted TOPSIS, which overcomes the shortage of using the same weight for each attribute in the original method. We evaluate dead code in two open-source Java projects. The results show that this method can well evaluate the risk of deleting dead code in nodes.","PeriodicalId":183728,"journal":{"name":"2022 IEEE 22nd International Conference on Software Quality, Reliability, and Security Companion (QRS-C)","volume":"42 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A Dead Code Evaluation Method based on Complex Network\",\"authors\":\"Xinwei Liu, Chuanqi Tao\",\"doi\":\"10.1109/QRS-C57518.2022.00069\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Dead code is widespread in open-source and commercial software systems. While there is some work on dead code detection, there is no work on evaluating the risk of removing dead code. This paper introduces complex network into dead code evaluation and proposes a dead code evaluation method based on weighted technique for order preference by similarity to ideal solution(TOPSIS). We regard degree centrality, closeness centrality, betweeness centrality and the proportion of alive codes as the multi-attribute of weighted TOPSIS, which overcomes the shortage of using the same weight for each attribute in the original method. We evaluate dead code in two open-source Java projects. The results show that this method can well evaluate the risk of deleting dead code in nodes.\",\"PeriodicalId\":183728,\"journal\":{\"name\":\"2022 IEEE 22nd International Conference on Software Quality, Reliability, and Security Companion (QRS-C)\",\"volume\":\"42 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-12-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 IEEE 22nd International Conference on Software Quality, Reliability, and Security Companion (QRS-C)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/QRS-C57518.2022.00069\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE 22nd International Conference on Software Quality, Reliability, and Security Companion (QRS-C)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/QRS-C57518.2022.00069","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A Dead Code Evaluation Method based on Complex Network
Dead code is widespread in open-source and commercial software systems. While there is some work on dead code detection, there is no work on evaluating the risk of removing dead code. This paper introduces complex network into dead code evaluation and proposes a dead code evaluation method based on weighted technique for order preference by similarity to ideal solution(TOPSIS). We regard degree centrality, closeness centrality, betweeness centrality and the proportion of alive codes as the multi-attribute of weighted TOPSIS, which overcomes the shortage of using the same weight for each attribute in the original method. We evaluate dead code in two open-source Java projects. The results show that this method can well evaluate the risk of deleting dead code in nodes.