Made the server representation of a graph bidirectional.