def add_edges(graph, edges):
    """Add edge(s) to graph

    Args:
        graph (Graph): Graph to add edge(s) to
        edges (list): List of edges

    Returns:
        Graph: Return the modified graph

    """
    for e in edges:
        if isinstance(e[0], tuple):
            graph.edge(*e[0], **e[1])
        else:
            graph.edge(*e)
    return graph