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

All Samples(12)  |  Call(5)  |  Derive(1)  |  Import(6)
Simple Stack class implemented as a Python list 

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

src/g/a/Gato-1.1.2/Embedder.py   Gato(Download)
from tkMessageBox import showwarning
 
from DataStructures import Stack
 
"""
def TreeCoords(G, root, orientation):
    S = Stack()
    visited = {}
    d = {}
    leaves = []

src/g/a/Gato-1.1.2/PlanarEmbedding.py   Gato(Download)
from PlanarityTest import *
from copy import deepcopy
from DataStructures import Stack
from tkMessageBox import showinfo
#=============================================================================#

src/g/a/Gato-1.1.2/PlanarityTest.py   Gato(Download)
#=============================================================================#
from copy import deepcopy
from DataStructures import Stack
from tkMessageBox import showinfo
#=============================================================================#
def pt_DFS(v):
 
    global G,reached
 
    S=Stack()
    # the cycle is represented as a stack |S| of blocks.
    w=wk
    S=Stack()
 
    while w!=x:
 
                while 1:
                    if B.left_interlace(S): (S.contents[-1]).flip()
                    if B.left_interlace(S): 
                        del B