Added functions add_node(), add_connections() and get_edge_weight()