stream to graph