Class: AnimatedNeighborhood | ./AnimatedDataStructures.py | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Visualizes visiting of neighbors by calling the Neighborhood method of graph for v and allowing to iterate over it, while coloring (v,w) cTraversedEdge unless (v,w) is colored with one of the colors in leaveColors. #Neighborhood = lambda v,a=A,g=G: AnimatedNeighborhood(a,g,v,['red'])
#
#for w in Neighborhood(v):
# doSomething
will color all edges cTraversedEdge unless the edge has been colored
if a blinkColor is specified the edge will blink
|