Skip to main content
100%

Edge creation

✓ Published0🌍 Public
663anp3ca
Last edited Oct 21, 2018
Created on Oct 21, 2018

This interactive network visualization demonstrates edge creation through drag-and-drop. Users drag a node onto another node to create a new link, with a background circle lighting up to indicate proximity. The visualization uses circular nodes, making connection detection straightforward by measuring center-to-center distances. After new links are formed, community structure is recalculated using the jLouvain algorithm, with nodes colored by module and border styles indicating inter- or intra-community connections. The dataset represents relationships between healthcare entities like patient demographics, providers, and encounters, rendered as an SVG force-directed graph with D3 v3.

AI-generated description

Graph Example 7 for How to Create Effective Network Data Visualization

One method that seems intuitive for creating links between existing nodes is to allow the user to drag that node onto the node to which you want to make the connection.

This is particularly easy to do when the nodes are circular, since you just have to measure the distance from the center of each node to the center of other nodes. With squares or more irregular shapes, you'll need to settle for less accurate detection or using a bounding-box method.

After making new connections, the modularity is recalculated based on the new links.

The method used here, which creates a background circle that lights up when in the proximity of another node, was first developed by Scott Murray and I for Kindred Britain.

This example relies on the jLouvain library to calculate community structure.

forked from <a href='http://bl.ocks.org/mjamei/'>mjamei</a>'s block: <a href='http://bl.ocks.org/mjamei/a883a211d807828e95f6'>Networks - Graphs 7</a>

mit Licensed

Similar vizzes

Loading thumbnail…

Edge creation

This visualization shows a force-directed network of blocks from bl.ocks.org, where nodes represent individual blocks and edges are derived from README links between them. Using d3.v3, the graph is rendered as an SVG with nodes colored by community structure detected via the Louvain algorithm (jLouvain), with border highlights on nodes and edges that bridge different modules. The force layout uses tuned parameters like charge, link distance, and gravity to create a dense, tightly clustered view of the block ecosystem. Node size is fixed at a small radius, and edge width is uniform, emphasizing the community structure and connectivity patterns over individual attributes. The visualization was built by Curran and adapted from original work by Micah Stubbs, with data sourced from a gist and rendered entirely with D3's SVG capabilities.# Edge Creation This force-directed graph visualization maps the network of blocks published on bl.ocks.org, with connections derived from README file references between blocks. ## Visual Design The visualization displays nodes as small circles (2px radius) colored using a categorical color scale based on Louvain community detection results. Each node represents a block, with edges showing README-based links between blocks. Nodes are colored by community membership, with border highlighting distinguishing nodes that bridge multiple communities. ## Interaction The graph is interactive, supporting drag-and-drop of nodes. The force-directed layout uses charge, link strength, link distance, and gravity parameters to position nodes. Community detection is computed in the browser using the jLouvain algorithm, with border nodes and edges identified through modularity census analysis. ## Key features - **Community detection:** Louvain algorithm groups related blocks into color-coded communities - **Force-directed layout:** Nodes and edges respond to physics simulation with configurable charge, link distance, and gravity - **Modularity census:** Border nodes and edges highlighted with thicker strokes to show community structure - **Interactive:** Nodes can be dragged and repositioned by the user The visualization was created by Curran and is part of a gallery piece that demonstrates community detection on a network of code blocks from bl.ocks.org, where edges represent README references between blocks. This is a dynamic network visualization using D3's force layout, showing how community detection algorithms can be applied to a network of linked code blocks. The graph is colored by community structure, with border edges and nodes highlighted to show connections between different communities. </script> </body> </html># Edge creation A force-directed graph visualization of blocks published on bl.ocks.org, where nodes represent individual blocks and links are derived from README file references between blocks. The graph applies the Louvain community detection algorithm (via jsLouvain.js) to color-code modular communities, with nodes assigned colors from a categorical scale based on their detected community membership. The visualization highlights inter-community connections through a modularity census: edges linking different communities and nodes at community borders are visually distinguished with stronger strokes. Node positions are computed using D3's force layout with tuned parameters (charge -200, link distance 3, link strength 3, gravity 0.1) to create a tight, clustered layout. Small circles (2px radius) represent blocks, colored by community, while gray lines represent links derived from README references between blocks. The graph supports drag interactions, allowing exploration of the network structure and community boundaries.

CCurran Kelleher
79% match