Merge pull request #291 from ndawe/graph

fix #289: Graph and Graph2D must call _post_init
File improvements: setitem and setattr and more unit tests