Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2 or more links between 2 nodes

See original GitHub issue

Hi, I want to draw 2 or more links between 2 nodes to show trunk links.

For example, I prepared the JSON file like below:

  "nodes": [
    { "name": "node1" },
    { "name": "node2" }

  "links": [
    { "source": "node1",  "target": "node2", 
      "meta": {
        "interface": { "source": "Eth1", "target": "Eth1" }
    { "source": "node1",  "target": "node2",
      "meta": {
        "interface": { "source": "Eth2", "target": "Eth2" }

By this, I expect 2 links are drawn between Eth1 of each nodes and between Eth2 of them. But the result was like below:

screen shot 2018-04-05 at 16 52 50

It seems that 2 links are overlapping. Is my JSON file is incorrect? In case of that, how can I fix it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

codeoutcommented, May 16, 2018

I’ve implemented an experimental option bundle: true, you can draw multiple links between nodes.

 var diagram = new Diagram('#diagram', 'index.json', {pop: /^([^\s-]+)-/, bundle: true});


Hope it works for you 🤞

We want to have a single line when two links are identical, but it looks complicated to tell whether they are identical or not. (In particular, when no meta data is given or they are not symmetric)

Today’s code cannot uniq identical links, It’s currently under development. I’ll change false to true for the default behavior of the bundle option after everything is done.

codeoutcommented, May 17, 2018

Grad to hear it !

my code can do that

I know your great work at

Read more comments on GitHub >

github_iconTop Results From Across the Web

2-Node with 2 parallel links - IBM
2 -Node with 2 parallel links ... This configuration is the same as the simple 2-node but adds the ability to recover because...
Read more >
Multiple links between two nodes - override each other - GoJS
Hi, I'm creating a flow chart base on a model I'm getting from a 3rd party. The model include step data & link...
Read more >
two links between two nodes - Cacti Forums
Hi, How i can create a two links between two nodes? Code: Select all # regular NODEs: NODE sw01 LABEL sw01 ...
Read more >
Measure the connection between two nodes in a graph
Given a graph G, you can make a graph H where the vertices of H are the edges of G, and two vertices...
Read more >
Add several links between two nodes in amcharts force ...
I'm using amcharts force directed network to render a knowledge graph. In this knowledge graph two nodes can have multiple edges in each ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found