<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/networkgraph.js"></script>

<div id="container"></div>
#container {
  min-width: 320px;
  max-width: 500px;
  margin: 0 auto;
  height: 500px;
}
Highcharts.chart('container', {
  chart: {
    type: 'networkgraph',
    marginTop: 80
  },
  title: {
    text: 'Network graph'
  },
  plotOptions: {
    networkgraph: {
      keys: ['from', 'to'],
    }
  },
  series: [{
    marker: {
      radius: 30
    },
    dataLabels: {
      enabled: true,
      linkFormat: '',
      allowOverlap: true
    },
    data: [
      ['Node 1', 'Node 2'],
      ['Node 1', 'Node 3'],
      ['Node 1', 'Node 4'],
      ['Node 4', 'Node 5'],
      ['Node 2', 'Node 5']
    ]
  }]
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.