I have created two R packages to create path graph in your blog: