Implement the Graph widget in D3