To prevent spam users, you can only post on this forum after registration, which is by invitation. If you want to post on the forum, please send me a mail (h DOT m DOT w DOT verbeek AT tue DOT nl) and I'll send you an invitation in return for an account.

What plug-ins can calculate simplicity or complexity?

Hi, I wanted to calculate complexity using the complexity =(2*CardosoValue*CyclomaticValue)/(CardosoValue+CyclomaticValue) method initially, but sometimes the denominator was 0,This results in a poor measure of complexity, so I was wondering if there are plugins that can be used to check for complexity or simplicity. Kind regards, Wk.

Comments

  • hverbeekhverbeek Posts: 838
    Hi,

    If the denominator is 0, then the numerator should be 0 as well. Perhaps an idea to check the numerator first, and to return 0 if the numerator is zero, and return your metric otherwise?

    Kind regards,
    Eric.

  • Hi,
    When I use the show-Petri-net Metrics plug-in, the Extended Cyclomatic metric attribute is 0. Can this possibly be true?I have also looked at other ways to measure Complexity, such as CFC and Struct. Are there plug-ins available for these?
    Kind regards,
    Wk.
  • hverbeekhverbeek Posts: 838
    Hi,

    In the end, this metric returns |E| - |V| + p, where |E| is the number of edges, |V| is the number of nodes, and p is the number of components. If you, for example, have a graph with two nodes and an edge that connects both, I guess it will return 0.

    For details on the metrics, please have a look at Complexity Metrics for Workflow Nets by K.B. Lassen and W.M.P. van der Aalst, Information and Software Technology, 51(3):610-626, 2009.

    This plugin can also compute the Cardoso (CFC) metric and structuredness metric. I do not know of any other plugins that compute these metrics.

    Kind regards,
    Eric.



Sign In or Register to comment.