task 13: added SGraph class based on HashSet