[plantain-jvm] Fixed+improved model. Added mutable graph.