valued_graph_matrix