File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/resources/static/js Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ window.onresize = function(e) {
7878 * @param graph design space graph
7979 */
8080export function condenseVisualization ( graph ) {
81- let sourceTargetMap = [ ] ;
81+ let sourceTargetMap = { } ;
8282
8383 for ( let i = 0 ; i < graph . links . length ; i ++ ) {
8484 // add optional flag to all links
@@ -87,8 +87,8 @@ export function condenseVisualization(graph){
8787 graph . links [ i ] . hasReverseOrient = false ;
8888
8989 //get all source/target pairs
90- let sourceNode = graph . links [ i ] . source . nodeID ;
91- let targetNode = graph . links [ i ] . target . nodeID ;
90+ let sourceNode = graph . links [ i ] . source . toString ( ) ;
91+ let targetNode = graph . links [ i ] . target . toString ( ) ;
9292 let stPairNum = sourceNode + targetNode ;
9393
9494 if ( ! ( stPairNum in sourceTargetMap ) ) {
You can’t perform that action at this time.
0 commit comments