Implemented the basic functionalities for initializations of graph edge weight