(graph, vertex_collections, edge_collections)
| 488 | |
| 489 | |
| 490 | def 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 | |
| 514 | def project_to_simple( |
nothing calls this directly
no test coverage detected