Creating, editing and displaying graphs and graph algorithms