A Simple javascript directed graph implementation.