nodeTemplateMap.add(
      'Switch',
      new go.Node('Auto', nodeStyle({ minSize: new go.Size(64, 32) })).add(new go.Shape('TriangleUp', shapeStyle()), new go.TextBlock('Switch', textStyle()))
    );

    myDiagram.nodeTemplateMap.add(
      'Merge',
      new go.Node(nodeStyle({ avoidable: false })).add(new go.Shape('TriangleDown', shapeStyle({ desiredSize: new go.Size(4, 4) })))
    );

    function groupColor(cat) {
      switch (cat) {
        case 'If':
          return 'rgba(255,0,0,0.05)';
        