Accepted answer

I've been working on a project to draw directed graphs in JavaScript here: It includes some examples that show how to use it with D3. You can find the demos here, which should help give you a sense of whether this approach would address your needs or not:

Related Query