Drawing a Network

Learn how to draw a network using nodes and links.

We'll cover the following

In the previous lesson, we have used the forceSimulation() API to compute the position for each node in the network. Now it’s time to draw the network using the knowledge of the forceSimulation() API.

Network visualization

Let’s demonstrate the network using the following example where we have dummy data that contains different people who have links with each other.

Let’s write code to draw a network to show their relationship.

Get hands-on with 1200+ tech skills courses.