first version that produces graph with writes