Don’t run out of colours

This commit is contained in:
Robin Leroy
2024-12-30 21:48:15 +01:00
parent 28df996617
commit 7d900fde38

View File

@@ -553,7 +553,7 @@ class KernelDG(nx.DiGraph):
graph.nodes[n]["style"] = "filled" graph.nodes[n]["style"] = "filled"
else: else:
graph.nodes[n]["style"] += ",filled" graph.nodes[n]["style"] += ",filled"
graph.nodes[n]["fillcolor"] = 2 + col graph.nodes[n]["fillcolor"] = 2 + col % 11
# color edges # color edges
for e in graph.edges: for e in graph.edges: