def addEdges(graph, edges):
    """
    This function adds edges to a given graph together with their weights
    """
    for i in edges:
        graph.add_edge(i[0],i[1], weight=i[2])
    return graph