my graph algorithms