def get_degrees(graph: Graph): degrees = {} for d in graph.get_degree(): degrees[d[0]] = d[1] return degrees
def get_grados(graph: Graph): grad = {} for i in graph.get_degree(): grad[i[0]] = i[1] return grad
def get_degrees(graph: Graph): degrees = {} for d in graph.get_degree(): degrees[d[0]] = d[1] return degrees
def get_grados(graph: Graph): grad = {} for i in graph.get_degree(): grad[i[0]] = i[1] return grad