Algorythm is tested on a small graph