code
stringlengths
239
50.1k
apis
list
extract_api
stringlengths
246
34.7k
import networkx.algorithms.community.tests.test_modularity_max import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx from graphscope.nx.utils.compat import with_graphscope_nx_context import_as_graphscope_nx(networkx.algorithms.community.tests.test_modularity_max, decorat...
[ "pytest.mark.skip", "graphscope.nx.utils.compat.with_graphscope_nx_context", "pytest.mark.usefixtures" ]
[((453, 498), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (476, 498), False, 'import pytest\n'), ((500, 537), 'graphscope.nx.utils.compat.with_graphscope_nx_context', 'with_graphscope_nx_context', (['TestNaive'], {}), '(TestNaive)\n', (526, 537),...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "pandas.DataFrame", "google.protobuf.any_pb2.Any", "graphscope.proto.data_types_pb2.BytesValue", "numpy.dtype", "graphscope.proto.data_types_pb2.DoubleValue", "random.choice", "json.dumps", "graphscope.proto.data_types_pb2.StringValue", "os.path.isfile", "graphscope.proto.attr_value_pb2.AttrValue"...
[((1297, 1320), 'os.path.isfile', 'os.path.isfile', (['abs_dir'], {}), '(abs_dir)\n', (1311, 1320), False, 'import os\n'), ((1580, 1609), 'graphscope.proto.attr_value_pb2.AttrValue', 'attr_value_pb2.AttrValue', ([], {'i': 'i'}), '(i=i)\n', (1604, 1609), False, 'from graphscope.proto import attr_value_pb2\n'), ((1715, 1...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file digraph.py is referred and derived from project NetworkX, # # https://github.com/networkx/networkx/blob/master/networkx/classes/digraph.py # # which has the following license: # # Copyright (C) 2004-2020, NetworkX Developers # <NAME> <<EMAIL>> # <NAME> <<EMA...
[ "graphscope.framework.dag_utils.create_graph_view", "graphscope.framework.graph_schema.GraphSchema", "networkx.classes.reportviews.DiDegreeView", "copy.deepcopy", "networkx.classes.reportviews.InDegreeView", "graphscope.client.session.get_session_by_id", "graphscope.nx.classes.reportviews.OutEdgeView", ...
[((8037, 8068), 'graphscope.nx.utils.compat.patch_docstring', 'patch_docstring', (['Graph.__init__'], {}), '(Graph.__init__)\n', (8052, 8068), False, 'from graphscope.nx.utils.compat import patch_docstring\n'), ((10379, 10410), 'graphscope.nx.utils.compat.patch_docstring', 'patch_docstring', (['RefDiGraph.adj'], {}), '...
import networkx.algorithms.tests.test_euler import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx from graphscope.nx.utils.compat import with_graphscope_nx_context import_as_graphscope_nx(networkx.algorithms.tests.test_euler, decorators=pytest.mark.usefixtures("graphscop...
[ "graphscope.nx.utils.compat.with_graphscope_nx_context", "pytest.mark.usefixtures" ]
[((538, 583), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (561, 583), False, 'import pytest\n'), ((585, 627), 'graphscope.nx.utils.compat.with_graphscope_nx_context', 'with_graphscope_nx_context', (['TestIsEulerian'], {}), '(TestIsEulerian)\n', (...
import pytest from networkx.generators.tests.test_atlas import TestAtlasGraph from networkx.generators.tests.test_atlas import TestAtlasGraphG import graphscope.nx as nx from graphscope.nx import graph_atlas from graphscope.nx import graph_atlas_g from graphscope.nx.utils.compat import with_graphscope_nx_context @py...
[ "graphscope.nx.utils.compat.with_graphscope_nx_context", "pytest.mark.usefixtures" ]
[((318, 363), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (341, 363), False, 'import pytest\n'), ((365, 407), 'graphscope.nx.utils.compat.with_graphscope_nx_context', 'with_graphscope_nx_context', (['TestAtlasGraph'], {}), '(TestAtlasGraph)\n', (...
import networkx.algorithms.shortest_paths.tests.test_astar import pytest from graphscope.experimental.nx.utils.compat import import_as_graphscope_nx from graphscope.experimental.nx.utils.compat import with_graphscope_nx_context import_as_graphscope_nx(networkx.algorithms.shortest_paths.tests.test_astar, ...
[ "graphscope.experimental.nx.utils.compat.with_graphscope_nx_context", "pytest.mark.skip", "pytest.mark.usefixtures" ]
[((467, 512), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (490, 512), False, 'import pytest\n'), ((514, 551), 'graphscope.experimental.nx.utils.compat.with_graphscope_nx_context', 'with_graphscope_nx_context', (['TestAStar'], {}), '(TestAStar)\n'...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "graphscope.framework.app.AppAssets", "graphscope.eigenvector_centrality", "graphscope.experimental.nx.utils.compat.patch_docstring", "graphscope.k_core", "graphscope.clustering", "graphscope.degree_centrality", "graphscope.experimental.nx.DiGraph", "graphscope.triangles", "graphscope.katz_centralit...
[((877, 906), 'graphscope.experimental.nx.utils.compat.patch_docstring', 'patch_docstring', (['nxa.pagerank'], {}), '(nxa.pagerank)\n', (892, 906), False, 'from graphscope.experimental.nx.utils.compat import patch_docstring\n'), ((995, 1020), 'graphscope.experimental.nx.utils.compat.patch_docstring', 'patch_docstring',...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "graphscope.framework.errors.check_argument", "graphscope.proto.attr_value_pb2.NameAttrList", "graphscope.framework.utils.unify_type", "graphscope.framework.utils.s_to_attr", "graphscope.framework.utils.type_to_attr", "graphscope.framework.loader.Loader" ]
[((3883, 3912), 'graphscope.proto.attr_value_pb2.NameAttrList', 'attr_value_pb2.NameAttrList', ([], {}), '()\n', (3910, 3912), False, 'from graphscope.proto import attr_value_pb2\n'), ((5561, 5680), 'graphscope.framework.errors.check_argument', 'check_argument', (["(load_strategy in ('only_out', 'only_in', 'both_out_in...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "graphscope.set_option", "graphscope.session", "graphscope.client.session.default_session", "pytest.fixture", "gremlin_python.process.traversal.P.gt", "graphscope.nx.Graph", "os.path.expandvars", "os.path.join", "graphscope.sssp", "graphscope.property_sssp" ]
[((1061, 1091), 'pytest.fixture', 'pytest.fixture', ([], {'scope': '"""module"""'}), "(scope='module')\n", (1075, 1091), False, 'import pytest\n'), ((1326, 1362), 'os.path.expandvars', 'os.path.expandvars', (['"""${GS_TEST_DIR}"""'], {}), "('${GS_TEST_DIR}')\n", (1344, 1362), False, 'import os\n'), ((1382, 1434), 'os.p...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "graphscope.framework.app.AppAssets", "graphscope.framework.app.not_compatible_for" ]
[((809, 887), 'graphscope.framework.app.not_compatible_for', 'not_compatible_for', (['"""dynamic_property"""', '"""arrow_projected"""', '"""dynamic_projected"""'], {}), "('dynamic_property', 'arrow_projected', 'dynamic_projected')\n", (827, 887), False, 'from graphscope.framework.app import not_compatible_for\n'), ((13...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "networkx.adjacency_matrix", "graphscope.nx.generators.expanders.margulis_gabber_galil_graph", "pytest.importorskip", "graphscope.nx.utils.compat.with_graphscope_nx_context", "graphscope.nx.number_of_nodes", "pytest.mark.usefixtures" ]
[((1589, 1634), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (1612, 1634), False, 'import pytest\n'), ((2336, 2381), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (2359, 2381)...
# -*- coding: utf-8 -*- # # This file random_graphs.py is referred and derived from project NetworkX, # # https://github.com/networkx/networkx/blob/master/networkx/generators/random_graphs.py # # which has the following license: # # Copyright (C) 2004-2020, NetworkX Developers # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <...
[ "graphscope.nx.DiGraph", "networkx.utils.py_random_state", "graphscope.nx.generators.classic.complete_graph", "networkx.utils.powerlaw_sequence", "scipy.optimize.brentq", "graphscope.nx.generators.degree_seq.degree_sequence_tree", "graphscope.nx.operators.union", "graphscope.nx.generators.classic.path...
[((1780, 1822), 'graphscope.nx.utils.compat.patch_docstring', 'patch_docstring', (['nxa.fast_gnp_random_graph'], {}), '(nxa.fast_gnp_random_graph)\n', (1795, 1822), False, 'from graphscope.nx.utils.compat import patch_docstring\n'), ((1824, 1842), 'networkx.utils.py_random_state', 'py_random_state', (['(2)'], {}), '(2)...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is referred and derived from project NetworkX # # which has the following license: # # Copyright (C) 2004-2020, NetworkX Developers # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # All rights reserved. # # This file is part of NetworkX. # # NetworkX...
[ "graphscope.nx.utils.compat.with_graphscope_nx_context", "pytest.mark.usefixtures" ]
[((792, 837), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (815, 837), False, 'import pytest\n'), ((839, 883), 'graphscope.nx.utils.compat.with_graphscope_nx_context', 'with_graphscope_nx_context', (['TestWriteSparse6'], {}), '(TestWriteSparse6)\n...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "graphscope.analytical.udf.utils.InMemoryZip", "yaml.dump", "graphscope.analytical.udf.compile.GRAPECompiler", "graphscope.analytical.udf.utils.LinesWrapper", "graphscope.framework.utils.get_timestamp" ]
[((1904, 1917), 'graphscope.analytical.udf.utils.InMemoryZip', 'InMemoryZip', ([], {}), '()\n', (1915, 1917), False, 'from graphscope.analytical.udf.utils import InMemoryZip\n'), ((3056, 3114), 'graphscope.analytical.udf.compile.GRAPECompiler', 'GRAPECompiler', (['class_name', 'vd_type', 'md_type', 'program_model'], {}...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "graphscope.framework.utils.b_to_attr", "graphscope.framework.dag_utils.create_graph", "graphscope.framework.graph_utils.normalize_parameter_vertices", "graphscope.framework.utils.normalize_data_type_str", "graphscope.framework.dag_utils.create_loader", "graphscope.framework.utils.s_to_attr", "graphscop...
[((6044, 6065), 'graphscope.client.session.get_default_session', 'get_default_session', ([], {}), '()\n', (6063, 6065), False, 'from graphscope.client.session import get_default_session\n'), ((6252, 6291), 'graphscope.framework.utils.normalize_data_type_str', 'utils.normalize_data_type_str', (['oid_type'], {}), '(oid_t...
import networkx.algorithms.tests.test_lowest_common_ancestors import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx from graphscope.nx.utils.compat import with_graphscope_nx_context import_as_graphscope_nx(networkx.algorithms.tests.test_lowest_common_ancestors, decorator...
[ "pytest.mark.skip", "graphscope.nx.utils.compat.with_graphscope_nx_context", "pytest.mark.usefixtures" ]
[((530, 575), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (553, 575), False, 'import pytest\n'), ((577, 615), 'graphscope.nx.utils.compat.with_graphscope_nx_context', 'with_graphscope_nx_context', (['TestDAGLCA'], {}), '(TestDAGLCA)\n', (603, 615...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file convert_matrix.py is referred and derived from project NetworkX, # # https://github.com/networkx/networkx/blob/master/networkx/convert_matrix.py # # which has the following license: # # Copyright (C) 2004-2020, NetworkX Developers # <NAME> <<EMAIL>> # <NAME>...
[ "graphscope.nx.empty_graph", "graphscope.nx.NetworkXError", "graphscope.nx.utils.compat.patch_docstring", "graphscope.nx.utils.compat.import_as_graphscope_nx" ]
[((759, 807), 'graphscope.nx.utils.compat.import_as_graphscope_nx', 'import_as_graphscope_nx', (['networkx.convert_matrix'], {}), '(networkx.convert_matrix)\n', (782, 807), False, 'from graphscope.nx.utils.compat import import_as_graphscope_nx\n'), ((811, 849), 'graphscope.nx.utils.compat.patch_docstring', 'patch_docst...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file referred and derived from project NetworkX, # # https://github.com/networkx/networkx/blob/master/networkx/generators/cograph.py # # which has the following license: # # Copyright (C) 2004-2020, NetworkX Developers # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <NAM...
[ "graphscope.nx.empty_graph", "networkx.utils.py_random_state", "graphscope.nx.NetworkXError", "graphscope.nx.relabel_nodes", "graphscope.nx.utils.compat.patch_docstring", "graphscope.nx.convert_node_labels_to_integers" ]
[((708, 726), 'networkx.utils.py_random_state', 'py_random_state', (['(1)'], {}), '(1)\n', (723, 726), False, 'from networkx.utils import py_random_state\n'), ((728, 760), 'graphscope.nx.utils.compat.patch_docstring', 'patch_docstring', (['_random_cograph'], {}), '(_random_cograph)\n', (743, 760), False, 'from graphsco...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ "pytest.fixture", "os.environ.get", "os.path.expandvars", "pytest.raises", "graphscope.JavaApp", "os.path.join" ]
[((806, 836), 'pytest.fixture', 'pytest.fixture', ([], {'scope': '"""module"""'}), "(scope='module')\n", (820, 836), False, 'import pytest\n'), ((935, 965), 'pytest.fixture', 'pytest.fixture', ([], {'scope': '"""module"""'}), "(scope='module')\n", (949, 965), False, 'import pytest\n'), ((1046, 1076), 'pytest.fixture', ...
# # This file is referred and derived from project NetworkX # # which has the following license: # # Copyright (C) 2004-2020, NetworkX Developers # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # All rights reserved. # # This file is part of NetworkX. # # NetworkX is distributed under a BSD license; see LICENS...
[ "graphscope.experimental.nx.OrderedGraph", "graphscope.experimental.nx.path_graph", "graphscope.experimental.nx.OrderedMultiGraph", "graphscope.experimental.nx.tests.utils.assert_edges_equal", "graphscope.experimental.nx.to_undirected", "graphscope.experimental.nx.induced_subgraph", "graphscope.experime...
[((706, 751), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (729, 751), False, 'import pytest\n'), ((4569, 4624), 'pytest.mark.skip', 'pytest.mark.skip', ([], {'reason': '"""not support order-like graph"""'}), "(reason='not support order-like graph...
import networkx.algorithms.tests.test_threshold import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx from graphscope.nx.utils.compat import with_graphscope_nx_context import_as_graphscope_nx(networkx.algorithms.tests.test_threshold, decorators=pytest.mark.usefixtures("g...
[ "pytest.importorskip", "graphscope.nx.utils.compat.with_graphscope_nx_context", "pytest.mark.usefixtures" ]
[((421, 466), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (444, 466), False, 'import pytest\n'), ((468, 518), 'graphscope.nx.utils.compat.with_graphscope_nx_context', 'with_graphscope_nx_context', (['TestGeneratorThreshold'], {}), '(TestGenerator...
import networkx.algorithms.tests.test_triads import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx import_as_graphscope_nx(networkx.algorithms.tests.test_triads, decorators=pytest.mark.usefixtures("graphscope_session")) from collections import defaultdict from itertools...
[ "graphscope.nx.is_isomorphic", "graphscope.nx.DiGraph", "graphscope.nx.is_directed", "graphscope.nx.random_triad", "collections.defaultdict", "graphscope.nx.karate_club_graph", "graphscope.nx.all_triads", "pytest.mark.usefixtures", "graphscope.nx.NetworkXAlgorithmError" ]
[((3278, 3323), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (3301, 3323), False, 'import pytest\n'), ((3562, 3607), 'pytest.mark.usefixtures', 'pytest.mark.usefixtures', (['"""graphscope_session"""'], {}), "('graphscope_session')\n", (3585, 3607)...