0 Replies Latest reply on Jul 10, 2018 11:40 PM by 40958a71-f82b-45ed-82cf-fd0357a59527

    How can I define edge labels in GM script?

    40958a71-f82b-45ed-82cf-fd0357a59527

      I am trying to write a GM script. Though input properties can be defined like `"edgeProp1 ;"` , how I can define edge labels?

       

       

      proc calc_score(G: graph, edgeProp1:E_P<string>; my_score:E_P<double>)

      {

               foreach(e: G.edges) {

                  if (e.edgeProp1 == "abc"){

      }

       

      Thanks.