Fixes and cunstructor for semipersistengraph