Graph algorithms in the D programming language