Author | Message |
---|---|
rmedina0531
Posts: 19
|
Posted 21:28 Apr 26, 2020 |
Is there a way to recolor the links when doing the display of the minimum spanning tree and the path created with it. When trying to visually check if a valid path is being made the red link of a path does not show up atop the green link of the tree. |
rabbott
Posts: 1649
|
Posted 22:55 Apr 26, 2020 |
To give a link a color, use either
lnk.color = Color('red')
or
You can also give a link a color when you create it. lnk = Link(point_1, point_2, ..., color=Color('green'), ...) Last edited by rabbott at
23:00 Apr 26, 2020.
|