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

All Samples(10)  |  Call(4)  |  Derive(1)  |  Import(5)
Simple Queue class implemented as a Python list:
XXX check whether replaceble by library queue

src/g/a/Gato-1.1.2/GraphUtil.py   Gato(Download)
from GatoGlobals import *
import Graph
from DataStructures import Point2D, VertexLabeling, EdgeLabeling, EdgeWeight, VertexWeight, Queue
import logging
log = logging.getLogger("Gato")
        returns (dist,pred) """
 
    Q = Queue()
    d = {}
    pred = {}
            visited[root] = 1
 
            Q = Queue()
            Q.Append(root)
 
        sets.
    """
    Q = Queue()
    V = set()
    W = set()

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 AnimatedVertexQueue(Queue):
    """ Visualizes status of vertices in relation to the Queue by
        coloring them
 
        - cOnQueue if they are in the queue

src/g/a/Gato-1.1.2/AnimatedAlgorithms.py   Gato(Download)
################################################################################
import GatoGlobals
from DataStructures import VertexLabeling, Queue
from AnimatedDataStructures import *
#from GraphDisplay import GraphDisplay

src/g/a/Gato-1.1.2/Embedder.py   Gato(Download)
 
from math import *
from DataStructures import Queue
 
def RadialTreeBFS(G,root,direction='forward'):
 
 
    Q = Queue()
    d = {}
    pred = {}