def edge_color(self, edge): value = float(edge.time.fraction) return Color.hsv(value / 2 + .5, value, 0.7)
def node_color(self, node): value = float(node.time.fraction) return Color.hsv(value / 2 + .5, value, 0.9)