On dragging nodes should not move, but only links should edit

myDiagram.nodeTemplateMap.add(“Value-added chain function”,
$(go.Node, “Auto”,
new go.Binding(“location”, “loc”, go.Point.parse).makeTwoWay(go.Point.stringify),
{ locationSpot: go.Spot.Center,deletable: false },

$(go.Shape, “RoundedRectangle”,
stroke: “black”,fill: “red”, name: “SHAPE”,
portId: “”, cursor: “pointer”,
width: 230,
fromLinkable: false,toLinkable: false,
// fromLinkableSelfNode: true, fromLinkableDuplicates: false,toLinkableSelfNode: true, toLinkableDuplicates: false

new go.Binding(“fill”, “color”)),
$(go.Adornment, “Auto”,
{ isShadowed: true },
{shadowOffset: new go.Point(0, 0)},
{shadowBlur: 0},
$(go.Shape, “Rectangle”,{ strokeWidth: 0, stroke: null},
{ fill: “#7e57c2”,width: 130}),
$(go.TextBlock, { font: “12pt Lato”, margin: 10 ,stroke: “#FFFFFF”, maxSize: new go.Size(120, 120),textAlign: “left” },
new go.Binding(“text”, “text”))
{ margin: 0,alignment: new go.Spot(1, 0, 0, 0), width: 25, height: 40 },
new go.Binding(“source”, “DTSIcon”, nodeTypeImage)),
{ alignment: new go.Spot(1, 0, -30, 11),margin: 0,width: 20, height: 20,cursor: “pointer” },
{ click: function(e, obj) { relatedinfo(); } },
new go.Binding(“source”, “infoIcon”, infoTypeImage)),
makePort(“T”, go.Spot.Top, true, true),
makePort(“L”, go.Spot.Left, true, true),
makePort(“R”, go.Spot.Right, true, true),
makePort(“B”, go.Spot.Bottom, true, false),
$(go.Panel, “Table”,
{ defaultAlignment: go.Spot.Left },
{ margin: 0, maxSize: new go.Size(240, NaN) },
column: 0,
stretch: go.GraphObject.Vertical,
alignment: go.Spot.Left
stretch: go.GraphObject.Horizontal,
wrap: go.TextBlock.WrapFit,
overflow: go.TextBlock.OverflowEllipsis
maxLines:2,row: 0, column: 1,
maxSize: new go.Size(80, NaN), margin:(0,0,0,0), textAlign: “left”,
font: “14px sans-serif”,
isMultiline: true,
editable: false

new go.Binding("text", "text").makeTwoWay()),
     // the name
     	row: 0, column: 0,textAlign: "left",
     	maxSize: new go.Size(NaN, NaN), margin:5, textAlign: "left",
     	font: "14px sans-serif",
     	isMultiline: true, 
     	textAlign: "left" ,
     new go.Binding("text", "pid"))
   ), // end Table Panel
{ dragComputation: stayInGroup }


If you do not want nodes to be moved by dragging, set or bind Node.draggable to false.

I have no idea what you mean by “only links should edit”. Just dumping your code here, without even making sure it is formatted correctly, does not help ask your question.