Testing module for weighted graph created.

Bug in edgelist module of wgraph fixed.