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

All Samples(90)  |  Call(89)  |  Derive(0)  |  Import(1)

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):