Graph algorithms and visualization