Table of Contents

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 red at some point

if a blinkColor is specified the edge will blink

Methods   
__getitem__
__init__
__len__
  __getitem__ 
__getitem__ ( self,  i )

Exceptions   
IndexError
  __init__ 
__init__ (
        self,
        theAnimator,
        G,
        v,
        leaveColors=[],
        blinkColor=None,
        )

theAnimator will usually be the GraphDisplay(Frame/Toplevel)

  __len__ 
__len__ ( self )


Table of Contents

This document was automatically generated on Fri Mar 15 11:15:02 2002 by HappyDoc version 2.0