Graphs algorithm in C
Ruby graph