Skip to content

Commit

Permalink
fix(interactive): Fix typo (#4233)
Browse files Browse the repository at this point in the history
<!--
Thanks for your contribution! please review
https://github.com/alibaba/GraphScope/blob/main/CONTRIBUTING.md before
opening an issue.
-->

## What do these changes do?
Fix typo
<!-- Please give a short brief about these changes. -->

## Related issue number

<!-- Are there any issues opened that will be resolved by merging this
change? -->

Fixes
  • Loading branch information
co63oc authored Dec 12, 2024
1 parent 086d7b1 commit 3d98c77
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion python/graphscope/analytical/udf/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def patch_cython_codewriter(writer): # noqa: C901
13. Add for `visit_CascadedCmpNode` node.
Patch for `visit_PrimaryCmpNode` node.
Examaples:
Examples:
----------
>>> 5 < 6 <= 7 > 4 >= 3 > 2 != 1
Expand Down
4 changes: 2 additions & 2 deletions python/graphscope/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def handle_grpc_error_with_retry(fn, retry=True):
This function will retry max times with specific GRPC status.
See detail in `GRPC_MAX_RETRIES_BY_CODE`.
Refer and specical thanks to:
Refer and special thanks to:
https://github.com/googleapis/google-cloud-python/issues/2583
"""
Expand Down Expand Up @@ -179,7 +179,7 @@ def with_grpc_catch(*args, **kwargs):


def handle_grpc_error(fn_or_retry):
"""Decorator to handle grpc error, and accepts an optional arugment to control
"""Decorator to handle grpc error, and accepts an optional argument to control
whether the function should be retried for certain errors.
This decorator can be used as
Expand Down
2 changes: 1 addition & 1 deletion python/graphscope/deploy/hosts/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _launch_coordinator(self):

# Param `start_new_session=True` is for putting child process to a new process group
# so it won't get the signals from parent.
# In notebook environment, we need to accept the signal from kernel restarted/stoped.
# In notebook environment, we need to accept the signal from kernel restarted/stopped.
process = subprocess.Popen(
cmd,
start_new_session=False if in_notebook() else True,
Expand Down
2 changes: 1 addition & 1 deletion python/graphscope/framework/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def load_app(gar=None, algo=None, context=None, **kwargs):
specified path or bytes.
For java apps, gar can be none to indicate we should find the app in
previouse added libs.
previous added libs.
Returns:
Instance of <graphscope.framework.app.AppAssets>
Expand Down
4 changes: 2 additions & 2 deletions python/graphscope/framework/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def to_numpy(self, selector, vertex_range=None, axis=0):
identical with vertices' oid type.
Omitting the first index starts the slice at the beginning of the vertices,
and omitting the second index extends the slice to the end of the vertices.
Note the comparision is not based on numeric order, but on alphabetic order.
Note the comparison is not based on numeric order, but on alphabetic order.
axis (int): optional, default to 0.
Returns:
Expand All @@ -170,7 +170,7 @@ def to_dataframe(self, selector, vertex_range=None):
of vertices from `m` to, but not including `n`. Type of `m`, `n` must be
identical with vertices' oid type.
Only the sub-ranges of vertices data will be retrieved.
Note the comparision is not based on numeric order, but on alphabetic order.
Note the comparison is not based on numeric order, but on alphabetic order.
Returns:
:class:`graphscope.framework.context.ResultDAGNode`:
Expand Down
2 changes: 1 addition & 1 deletion python/graphscope/framework/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class Dag(object):
"""Class represented as a GraphScope dataflow dag.
A :class:`Dag` is always belongs to a session and containes a set of
A :class:`Dag` is always belongs to a session and contains a set of
:class:`Operation` object, which performs computations on tensors.
"""

Expand Down
4 changes: 2 additions & 2 deletions python/graphscope/framework/graph_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ def load_from(
generate_eid (bool, optional): Whether to generate a unique edge id for each edge. Generated eid will be placed
in third column. This feature is for cooperating with interactive engine.
If you only need to work with analytical engine, set it to False. Defaults to True.
retain_oid (bool, optional): Whether to keep the orignal ID column as the last column of vertex table.
retain_oid (bool, optional): Whether to keep the original ID column as the last column of vertex table.
This feature is for cooperating with interactive engine.
If you only need to work with analytical engine, set it to False. Defaults to True.
vertex_map (str, optional): Indicate use global vertex map or local vertex map. Can be "global" or "local".
compact_edges (bool, optional): Compact edges (CSR) using varint and delta encoding. Defaults to False.
compact_edges (bool, optional): Compact edges (CSR) using variant and delta encoding. Defaults to False.
Note that compact edges helps to half the memory usage of edges in graph data structure, but may cause
at most 10%~20% performance degeneration in some algorithms.
use_perfect_hash (bool, optional): Use perfect hashmap in vertex map to optimize the memory usage.
Expand Down
4 changes: 2 additions & 2 deletions python/graphscope/framework/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

class CSVOptions(object):
"""Options to read from CSV files.
Avaiable options are:
Available options are:
- column delimiters
- include a subset of columns
- types of each columns
Expand Down Expand Up @@ -165,7 +165,7 @@ def __repr__(self) -> str:
return self.__str__()

def resolve(self, source):
"""Dispatch resolver based on type of souce.
"""Dispatch resolver based on type of source.
Args:
source: Different data sources
Expand Down
2 changes: 1 addition & 1 deletion python/graphscope/gsctl/scripts/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ get_os_version() {
OS_VERSION=$(uname -r)
fi
if [[ "${PLATFORM}" != *"Ubuntu"* && "${PLATFORM}" != *"CentOS"* && "${PLATFORM}" != *"Darwin"* && "${PLATFORM}" != *"Aliyun"* ]];then
err "Only suppport on Ubuntu/CentOS/macOS/AliyunOS platform."
err "Only support on Ubuntu/CentOS/macOS/AliyunOS platform."
exit 1
fi
if [[ "${PLATFORM}" == *"Ubuntu"* && "${OS_VERSION:0:2}" -lt "20" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion python/graphscope/nx/algorithms/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def all_pairs_shortest_path_length(G, weight=None):
----------
G : networkx graph
weight : string (defualt=None)
weight : string (default=None)
edge weights will be accessed via the edge attribute with this
key (that is, the weight of the edge joining `u` to `v` will be
``G.edges[u, v][weight]``). If is None, every edge is assume to be one.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ class TestGenericMultiEdgeMatch():
pass


@pytest.mark.skip(reason="not supoort time object as attribute")
@pytest.mark.skip(reason="not support time object as attribute")
class TestTimeRespectingGraphMatcher(object):
pass


@pytest.mark.skip(reason="not supoort time object as attribute")
@pytest.mark.skip(reason="not support time object as attribute")
class TestDiTimeRespectingGraphMatcher(object):
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def test_shortest_simple_paths():
)

@pytest.mark.usefixtures("graphscope_session")
@pytest.mark.skipif(nxa.__version__ < "2.5", reason="netowrkx2.4 does not support weight funtion.")
def test_shortest_simple_paths_directed_with_weight_fucntion():
@pytest.mark.skipif(nxa.__version__ < "2.5", reason="netowrkx2.4 does not support weight function.")
def test_shortest_simple_paths_directed_with_weight_function():
def cost(u, v, x):
return 1

Expand Down
2 changes: 1 addition & 1 deletion python/graphscope/nx/classes/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def session_id(self):

@property
def key(self):
"""Key of the coresponding engine graph."""
"""Key of the corresponding engine graph."""
if hasattr(self, "_graph") and self._is_client_view:
return (
self._graph.key
Expand Down
2 changes: 1 addition & 1 deletion scripts/launch_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _get_cluster_config(self):
default="1.21",
)
config["instance_type"] = click.prompt(
"Worker node instance type, defalut", default="t2.micro"
"Worker node instance type, default", default="t2.micro"
)
config["node_num"] = click.prompt(
"Worker node num, default", type=int, default=4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
"metadata": {},
"outputs": [],
"source": [
"list(G.edges.data()) # shows the edge arrtibutes"
"list(G.edges.data()) # shows the edge attributes"
]
},
{
Expand Down Expand Up @@ -972,7 +972,7 @@
"metadata": {},
"outputs": [],
"source": [
"H = DG.to_undirected() # return a \"deepcopy\" of undirected represetation of DG.\n",
"H = DG.to_undirected() # return a \"deepcopy\" of undirected representation of DG.\n",
"list(H.edges)"
]
},
Expand Down Expand Up @@ -1000,7 +1000,7 @@
"metadata": {},
"outputs": [],
"source": [
"K = DG.reverse() # retrun a \"deepcopy\" of reversed copy.\n",
"K = DG.reverse() # return a \"deepcopy\" of reversed copy.\n",
"list(K.edges)"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
"metadata": {},
"outputs": [],
"source": [
"list(G.edges.data()) # shows the edge arrtibutes"
"list(G.edges.data()) # shows the edge attributes"
]
},
{
Expand Down Expand Up @@ -962,7 +962,7 @@
"metadata": {},
"outputs": [],
"source": [
"H = DG.to_undirected() # return a \"deepcopy\" of undirected represetation of DG.\n",
"H = DG.to_undirected() # return a \"deepcopy\" of undirected representation of DG.\n",
"list(H.edges)"
]
},
Expand Down Expand Up @@ -991,7 +991,7 @@
"metadata": {},
"outputs": [],
"source": [
"K = DG.reverse() # retrun a \"deepcopy\" of reversed copy.\n",
"K = DG.reverse() # return a \"deepcopy\" of reversed copy.\n",
"list(K.edges)"
]
},
Expand Down
2 changes: 1 addition & 1 deletion tutorials/zh/07_interactive_query_with_gremlin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Greate GIE engine with Gremlin\n",
"# Create GIE engine with Gremlin\n",
"\n",
"interactive = graphscope.gremlin(modern_graph)"
]
Expand Down

0 comments on commit 3d98c77

Please sign in to comment.