graphscope.framework.app.load_app

graphscope.framework.app.load_app(algo, gar=None, **kwargs)[source]

Load an app from gar. bytes orthe resource of the specified path or bytes.

Parameters
  • algo – str Algo name inside resource.

  • gar – bytes or BytesIO or str str represent the path of resource.

Returns

Instance of <graphscope.AppAssets>

Raises
  • FileNotFoundError – File not exist.

  • PermissionError – Permission denied of path.

  • TypeError – File is not a zip file.

Examples

>>> sssp = load_app('sssp', gar='./resource.gar')
>>> sssp(src=4)
which will have following .gs_conf.yaml in resource.gar:
app:
  • algo: sssp type: cpp_pie class_name: grape:SSSP src: sssp/sssp.h compatible_graph:

    • gs::ArrowProjectedFragment