
    });
    myDiagram.links.each((l) => {
      l.visible = false;
    });
  }

  function makeNodes(model) {
    var nodeDataArray = [
      { key: 'Start' }, // the root node

      // intermediate nodes: decisions on personality characteristics
      { key: 'I' },
      { key: 'E' },

      { key: 'IN' },
      { key: 'IS' },
      { key: 'EN' },
      { key: 'ES' },

      { key: 'INT' },
      { key: 'INF' },
      { key: 'IST' },
      { key: 'ISF' },
      { key: 'ENT' },
      { key: 'ENF' },
     