function writeVertex(id, label) {
  var color = "Blue";
  if(label === '(anonymous function)') {
    color = "Black";
  }

  if(label.length > nameLimit) {
    label = label.substring(0, nameLimit);
  }

  dotFile += "  " + id + " [label=\"" + label + "\" color=" + color + "]\n";
}
// Helper to write a DOT vertex with label
Helper to write a DOT vertex with label
Helper to write a DOT vertex with label
function writeVertex(id, label) {
  var color = "Blue";
  if(label === '(anonymous function)') {
    color = "Black";
  }
  if(label.length > nameLimit) {
    label = label.substring(0, nameLimit);
  }
  dotFile += "  " + id + " [label=\"" + label + "\" color=" + color + "]\n";
}
function writeVertex ( id , label ) { var color = "Blue" ; if ( label === '(anonymous function)' ) { color = "Black" ; } if ( label . length > nameLimit ) { label = label . substring ( 0 , nameLimit ) ; } dotFile += "  " + id + " [label=\"" + label + "\" color=" + color + "]\n" ; }
Helper to write a DOT vertex with label
Helper to write a DOT vertex with label