def out_edge(graph, node):
    """Follow a single edge from node, returning a tuple:
    (node, dest_node, edge_data)
    """
    edges = graph.out_edges(node, data=True)
    assert len(edges) == 1
    return edges[0]
