now it REALLY seems to work properly, I made some serious changes to the structure
unfortunately graph randomization takes a lot of time
at least there is no segfault and free/malloc errors
Now it really works, previously it didn't but I haven't noticed
unfortunately grapgh random initialiation works too long
at least there hasn't been any errors yet