diff --git a/src/sage/graphs/generic_graph.py b/src/sage/graphs/generic_graph.py index 560f3d002cd..c74e215a16b 100644 --- a/src/sage/graphs/generic_graph.py +++ b/src/sage/graphs/generic_graph.py @@ -17342,14 +17342,14 @@ def _color_by_label(self, format='hex', as_function=False, default_color = "blac The default output is a dictionary assigning edges to colors:: sage: G._color_by_label() - {'#0000ff': [((1,3,2,4), (1,4)(2,3), 3), ..., ((1,3), (1,4,3), 3)], - '#00ff00': [((1,3,2,4), (1,2,4), 2), ..., ((1,3), (1,2,3), 2)], - '#ff0000': [((1,3,2,4), (1,3)(2,4), 1), ..., ((1,3), (1,3,2), 1)]} + {'#0000ff': [((1,3,2,4), (1,4)(2,3), 3), ...], + '#00ff00': [((1,3,2,4), (1,2,4), 2), ...], + '#ff0000': [((1,3,2,4), (1,3)(2,4), 1), ...]} sage: G._color_by_label({1: "blue", 2: "red", 3: "green"}) - {'blue': [((1,3,2,4), (1,3)(2,4), 1), ..., ((1,3), (1,3,2), 1)], - 'green': [((1,3,2,4), (1,4)(2,3), 3), ..., ((1,3), (1,4,3), 3)], - 'red': [((1,3,2,4), (1,2,4), 2), ..., ((1,3), (1,2,3), 2)]} + {'blue': [((1,3,2,4), (1,3)(2,4), 1), ...], + 'green': [((1,3,2,4), (1,4)(2,3), 3), ...], + 'red': [((1,3,2,4), (1,2,4), 2), ...]} TESTS: