Programatically creating chord graph.