
        { source: "process2", target: "output" },
      ];

      // Draw connections first (to be under nodes)
      const linkGenerator = d3.linkHorizontal();

      // Add wire casings
      const wireCasings = svg
        .selectAll(".wire-casing")
        .data(links)
        .enter()
        .append("path")
        .attr("class", "wire-casing")
        .attr("d", (d) => {
          const sourceNode = nodes.find((n) => n.id === d.source);
          const targetNode = nodes.find((n) => n.id === d.targe