Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(1)  |  Derive(1)  |  Import(2)
A simple priority queue giving minimal valued items first.
Interface only ... 

src/g/a/Gato-1.1.2/AnimatedDataStructures.py   Gato(Download)
################################################################################
from GatoGlobals import AnimationParameters, gInfinity, NoSuchVertexError, NoSuchEdgeError  
from DataStructures import VertexLabeling, Queue, Stack, PriorityQueue
from Graph import SubGraph
import copy
class AnimatedVertexPriorityQueue(PriorityQueue):    
    """ Visualizes status of vertices in relation to the PriorityQueue by
        coloring them
 
        - cOnQueue if they are in the queue