Recursive closing different functions
- recursive closing option and remove duplicate methods
- fix graph opening
- adding closing and opening exceptions classes and insert into closing procedure
- adding test on closing of two graphs and test on non-recursive closing
- implement function switch
- clean some extra imports, update codestyle, etc
Edited by Tsegelnik Nikita