ansatz graph istream