如何计算用m种颜色绘制树节点的方法,以便每条边的末端有不同的颜色?
任何多项式解决方案都是受欢迎的.
algorithm tree graph-coloring
algorithm ×1
graph-coloring ×1
tree ×1