add weighted graph and test
update readme