Graph Example 1 for How to Create Effective Network Data Visualization
Taking into account the properties of the whole network allows you to adjust the visualization to be more readable.
Nodes are sized by what's known as Degree Centrality, which is the total number of links to the node. This is calculated by the D3 force layout and appears as the .weight property of a node.
The charge setting of the layout is also based on that weight, so more highly connected (larger) nodes push nodes away more than less highly connected nodes.
When you mouse over a node, it highlights the ego network of the node, which is all the nodes it's connected to, as well as the edges that instantiate those connections.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js