Implement proper conversion between directed and undirected in graph model. Link graph and D3 models more closely.