all

    const svg = d3.select('#network'),
    width = +svg.attr("width"),
    height = +svg.attr("height"),
    nodeRadius = 30, // Radius for the profile images
    spacingBetweenNodes = 2, // Spacing between nodes
    spacingBetweenCircles = 20; // Spacing between concentric circles
    let centralNodeRadius = nodeRadius * 1.5;

    // Function to calculate positions
    function calculatePositions(data, startRadius) {
    let currentRadius = startRadius, // Adjust initial radius to start from outside t