using d3 for directed graph visualization - d3.js

I want to use d3 force-directed layout for visualizing my graph. However, I want to show edge direction since it is a directed graph. Is it possible to show this using d3?

Related

D3 v7 force graph: Can't drag nodes and links

When single node is dragged, other nodes and links don't follow along like in this graph example: https://observablehq.com/#d3/force-directed-graph
Here is the code: https://stackblitz.com/edit/js-xbmyr7?file=index.js
I have followed the 'template' solution typical of draggable graphs but am unable to understand why the rest of the graph does not move. All nodes and links are selected in the ticked function.

Asymmetric link forces in D3 force-directed graph

Is it possible to create a custom (link) force in a d3 force-directed graph, such that the link strength is asymmetric? What I mean is that I want two nodes A and B, and B is completely oblivious to node A, but node A is constantly trying to remain a certain distance (maybe 0?) from node B.
More generally, I'd like two graphs G1 and G2 where G1 is draggable and moves like a regular force-directed graph (oblivious to G2), and the nodes in G2 are constantly trying to re-position themselves relative to G1 in a certain way.

D3 Force directed graph with collapsible nodes - Remove animation/explosion

I am using the D3 force directed graph with collapsible nodes as described here
Is there a way to avoid the explosion that happens when the graph is initially loaded? Also, can we stop the movement/animation of nodes once the graph has loaded?

Find cycles in force directed graph

i want to find cycles in force directed graph. D3JS have method to detect loops in graph (article with method / parameter) . It is possible use this function and visualize loops ? I have graph with arrows (source - taget direction) like is here Graph
Thanks for help!

graphviz: Different orientation of the sub graphs

I would like to create graph with 3 sub graphs. Could two of them have left-right orientation and third top-bottom orientation as in this example?
I need also connect a few nodes from one subgraph to another but this should be easy.
This is not possible with graphviz. rankdir is a graph attribute (not subgraph or cluster).

Resources