playing with graphs and networkx
added hash method to Encoding