A Graph-Based Class Structural Complexity Metric and Its Evaluation

Hirohisa AMAN  Hiroyuki YAMADA  Matu-Tarow NODA  Torao YANARU  

Publication
IEICE TRANSACTIONS on Information and Systems   Vol.E85-D   No.4   pp.674-684
Publication Date: 2002/04/01
Online ISSN: 
DOI: 
Print ISSN: 0916-8532
Type of Manuscript: Special Section PAPER (Special Issue on Knowledge-Based Software Engineering)
Category: Metrics
Keyword: 
object oriented software metrics,  class structural complexity,  directed graph,  

Full Text: PDF>>
Buy this Article




Summary: 
Properly representation of the complexity of class structure will be useful in object oriented software developments. Although some class complexity metrics have been proposed, they have ignored directions of coupling relationships among methods and attributes, such as whether a method writes data onto an attribute or reads data from the attribute. In this paper, we use a directed graph model to represent such coupling relationships. Based on the directed graph model, we propose a metric of class structural complexity. The proposed metric satisfies necessary conditions of complexity metric suggested by Briand and others. The following fact is showed by experimental data of Java classes. While the proposed metric follows a conventional metric, the proposed metric can capture an aspect of class structural complexity which is lost by the conventional one.