Table of Contents

Class: AnimatedVertexSet ./AnimatedDataStructures.py

Visualizes status of vertices in relation to the Set by coloring them

  • cVisited if they have been in the set and were removed

Methods   
Add
Contains
IsEmpty
IsNotEmpty
Remove
Set
__init__
  Add 
Add ( self,  v )

Add a single vertex v

  Contains 
Contains ( self,  v )

  IsEmpty 
IsEmpty ( self )

  IsNotEmpty 
IsNotEmpty ( self )

  Remove 
Remove ( self,  v )

  Set 
Set ( self,  vertexSet )

Sets the set equal to a copy of vertexSet

  __init__ 
__init__ (
        self,
        theAnimator,
        vertexSet=None,
        color=cVisited,
        )

theAnimator will usually be the GraphDisplay(Frame/Toplevel)


Table of Contents

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