diff --git a/js/networkgraph/mynetwork.js b/js/networkgraph/mynetwork.js index 22da6e6..58ed0ce 100644 --- a/js/networkgraph/mynetwork.js +++ b/js/networkgraph/mynetwork.js @@ -1073,7 +1073,7 @@ function draw(isImport) { id: edgeDetails.id, shadow: shadow, is_highlight: highlight }); } - + } } }); @@ -1352,6 +1352,10 @@ function draw(isImport) { var edgesArray = []; if (hEdges.length > 0) { edgesArray = hEdges; + + if (!network.body.data.edges.get(edgeData).is_highlight) + edgesArray.push({ id: edgeData }); + } else if (nodeData == "" && edgeData != "") { edgesArray.push({ id: edgeData }); @@ -1447,6 +1451,16 @@ function draw(isImport) { } } + if (nodeDatas != undefined) { + + } + if (edgeDatas != undefined) { + network.body.data.edges.update({ + id: edgeDatas.id, shadow: singleFiberJSON.options.shadow, is_highlight: true + }); + + } + //to add only same type of node on multiple select nodesArray = []; if (data.nodes.length > 0 && sNodes.length > 0) {