Skip to content

Commit

Permalink
bp: enable multigraph
Browse files Browse the repository at this point in the history
since we have no control about edges and nodes, it might be possible that some nodes have multiple edges.
  • Loading branch information
sni committed Jul 10, 2024
1 parent 4edc78a commit 415fe8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ function bp_render(containerId, nodes, edges) {
// first reset zoom
bp_zoom(1);
jQuery('#'+containerId).css("visibility", "hidden");
var g = new dagre.graphlib.Graph();
var g = new dagre.graphlib.Graph({ "multigraph": true });
g.setGraph({
// https://github.com/dagrejs/dagre/wiki#configuring-the-layout
"nodesep": bp_graph_options.bp_nodeSep,
Expand Down

0 comments on commit 415fe8a

Please sign in to comment.