chordal: Added routine to calculate chords of an undirected graph.