Testing module for weighted digraph added