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

Method __init__

python/graphscope/framework/graph.py:894–919  ·  view source on GitHub ↗

Construct a :class:`Graph` object.

(
        self,
        graph_node,
    )

Source from the content-addressed store, hash-verified

892 """
893
894 def __init__(
895 self,
896 graph_node,
897 ):
898 """Construct a :class:`Graph` object."""
899
900 self._graph_node = graph_node
901 self._session = self._graph_node.session
902 # copy and set op evaluated
903 self._graph_node.op = deepcopy(self._graph_node.op)
904 self._graph_node.evaluated = True
905 self._graph_node._unload_op = dag_utils.unload_graph(self._graph_node)
906 self._session.dag.add_op(self._graph_node.op)
907
908 self._key = None
909 self._vineyard_id = 0
910 self._fragments = None
911 self._schema = GraphSchema()
912 self._detached = False
913
914 self._vertex_map = graph_node._vertex_map
915 self._compact_edges = graph_node._compact_edges
916 self._use_perfect_hash = graph_node._use_perfect_hash
917
918 self._interactive_instance_list = []
919 self._learning_instance_list = []
920
921 def update_from_graph_def(self, graph_def):
922 if graph_def.graph_type == graph_def_pb2.ARROW_FLATTENED:

Callers 1

__init__Method · 0.45

Calls 2

GraphSchemaClass · 0.90
add_opMethod · 0.80

Tested by

no test coverage detected