adds weighted directed graphs + small changes to weighted undirected gra...

...phs