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

All Samples(16)  |  Call(0)  |  Derive(14)  |  Import(2)

src/g/r/graphserver-HEAD/pygs/graphserver/core.py   graphserver(Download)
try:
    from graphserver.gsdll import libc, lgs, cproperty, ccast, CShadow, instantiate, PayloadMethodTypes
except ImportError:
    #so I can run this script from the same folder
    from gsdll import libc, lgs, cproperty, ccast, CShadow, instantiate, PayloadMethodTypes
class Graph(CShadow):
 
    size = cproperty(lgs.gSize, c_long)
 
    def __init__(self, numagencies=1):
class ContractionHierarchy(CShadow):
 
    upgraph = cproperty(lgs.chUpGraph, c_void_p, Graph)
    downgraph = cproperty(lgs.chDownGraph, c_void_p, Graph)
 
class ShortestPathTree(CShadow):
 
    size = cproperty(lgs.sptSize, c_long)
 
    def __init__(self, numagencies=1):
class EdgePayload(CShadow, Walkable):
    def __init__(self):
        if self.__class__ == EdgePayload:
            raise "EdgePayload is an abstract type."
 

src/g/r/graphserver-HEAD/pygs/graphserver/vector.py   graphserver(Download)
from gsdll import CShadow, lgs
 
from ctypes import Structure, c_int, c_void_p, pointer, addressof, byref
 
class Vector(Structure):