sequence, max_score = get_best_sequence(graph) print(f"Generated text: {sequence}")