Changed to immutable graph