Added a weighted graph as an example. Also added some clarifications in the readme for weighted graphs and compilation