MCPcopy Create free account
hub / github.com/alibaba/GraphScope / project_arrow_property_graph

Function project_arrow_property_graph

python/graphscope/framework/dag_utils.py:490–511  ·  view source on GitHub ↗
(graph, vertex_collections, edge_collections)

Source from the content-addressed store, hash-verified

488
489
490def project_arrow_property_graph(graph, vertex_collections, edge_collections):
491 check_argument(graph.graph_type == graph_def_pb2.ARROW_PROPERTY)
492 config = {
493 types_pb2.GRAPH_TYPE: utils.graph_type_to_attr(graph.graph_type),
494 types_pb2.VERTEX_MAP_TYPE: utils.i_to_attr(graph._vertex_map),
495 types_pb2.COMPACT_EDGES: utils.b_to_attr(graph._compact_edges),
496 types_pb2.USE_PERFECT_HASH: utils.b_to_attr(graph._use_perfect_hash),
497 }
498 config.update(
499 {
500 types_pb2.VERTEX_COLLECTIONS: utils.s_to_attr(vertex_collections),
501 types_pb2.EDGE_COLLECTIONS: utils.s_to_attr(edge_collections),
502 }
503 )
504 op = Operation(
505 graph.session_id,
506 types_pb2.PROJECT_GRAPH,
507 config=config,
508 inputs=[graph.op],
509 output_types=types_pb2.GRAPH,
510 )
511 return op
512
513
514def project_to_simple(

Callers

nothing calls this directly

Calls 3

check_argumentFunction · 0.90
OperationClass · 0.90
updateMethod · 0.45

Tested by

no test coverage detected