anchor.diff:  
   
                  };
  -               function getAttributeVal(target,attribute){
  -                  for (var i in target.data) {
  -                      if (i == attribute && target.data[i] != null) {
  -                          return target.data[i];
  -                      }
  -                  }
  +
  +              function checkDataField(group_id, field){
  +                  var val = group_id == "nodes"? nodesDataSchema[field] : (group_id == "edges"? edgesDataSchema[field] : -1);
  +                  return val;
                 }
  -              function createEditableElement(element, target, variable_name, variable_value) {
  +              function createEditableElement(element, target, variable_name, variable_value,group_id) {
                     var input_text = element;
   
  +                   dataValidation = ( (group_id == "nodes")? nodesDataSchema : edgesDataSchema );
                     if (dataValidation[variable_name]["type"] == "boolean") {
                         input_text.type = "checkbox";
                         input_text.value = (variable_value == "true" ? true : false)
  
positive.code:                 // callback when Cytoscape Web has finished drawing
                  vis.ready(function() {
  
                      //Add new comment field to nodes and edges:
                     var comment_field = { name: "Comment", type: "string", defValue: null };
                     vis.addDataField(comment_field);
  
                      // add a listener for when nodes and edges are clicked
                      vis.addListener("click", "nodes", function(event) {
  
                          handle_click(event,"nodes");
                      })
                      .addListener("click", "edges", function(event) {
  
negative.code:                                                 col2.textContent = variable_value;
                                                  break;
                                              } else {
                                                  //others are editable
                                                  if (i == (key_words.length - 1)) {
                                                      var input_text = document.createElement('input');
                                                      createEditableElement(input_text, target, variable_name, variable_value,group_id);
                                                      col2.appendChild(input_text);
                                                  }
                                              }
  