Skip to content

Commit 07ebb31

Browse files
committed
Improve doc strings for node similarity
1 parent 6478516 commit 07ebb31

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

graphdatascience/procedure_surface/api/similarity/node_similarity_endpoints.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def mutate(
7373
similarity_metric : str, default="JACCARD"
7474
The similarity metric to use for computation.
7575
use_components : bool | str, default=False
76-
Whether to compute similarity within connected components.
76+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
7777
relationship_weight_property : str | None, default=None
7878
The relationship property to use as weights.
7979
relationship_types : list[str] | None, default=None
@@ -143,7 +143,7 @@ def stats(
143143
similarity_metric : str, default="JACCARD"
144144
The similarity metric to use for computation.
145145
use_components : bool | str, default=False
146-
Whether to compute similarity within connected components.
146+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
147147
relationship_weight_property : str | None, default=None
148148
The relationship property to use as weights.
149149
relationship_types : list[str] | None, default=None
@@ -213,7 +213,7 @@ def stream(
213213
similarity_metric : str, default="JACCARD"
214214
The similarity metric to use for computation.
215215
use_components : bool | str, default=False
216-
Whether to compute similarity within connected components.
216+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
217217
relationship_weight_property : str | None, default=None
218218
The relationship property to use as weights.
219219
relationship_types : list[str] | None, default=None
@@ -290,7 +290,7 @@ def write(
290290
similarity_metric : str, default="JACCARD"
291291
The similarity metric to use for computation.
292292
use_components : bool | str, default=False
293-
Whether to compute similarity within connected components.
293+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
294294
relationship_weight_property : str | None, default=None
295295
The relationship property to use as weights.
296296
relationship_types : list[str] | None, default=None
@@ -338,7 +338,7 @@ def estimate(
338338
) -> EstimationResult:
339339
"""
340340
Estimates the memory requirements for running the Node Similarity algorithm.
341-
341+
342342
Parameters
343343
----------
344344
G : GraphV2
@@ -360,7 +360,7 @@ def estimate(
360360
similarity_metric : str, default="JACCARD"
361361
The similarity metric to use for computation.
362362
use_components : bool | str, default=False
363-
Whether to compute similarity within connected components.
363+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
364364
relationship_weight_property : str | None, default=None
365365
The relationship property to use as weights.
366366
relationship_types : list[str] | None, default=None

graphdatascience/procedure_surface/api/similarity/node_similarity_filtered_endpoints.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def mutate(
7171
upper_degree_cutoff : int, default=2147483647
7272
The maximum degree a node can have to be considered.
7373
similarity_metric : str, default="JACCARD"
74-
The similarity metric to use for computation.
74+
The similarity metric to use for computation. JACCARD, OVERLAP or COSINE.
7575
use_components : bool | str, default=False
76-
Whether to compute similarity within connected components.
76+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
7777
relationship_weight_property : str | None, default=None
7878
The relationship property to use as weights.
7979
relationship_types : list[str] | None, default=None
@@ -147,9 +147,9 @@ def stats(
147147
upper_degree_cutoff : int, default=2147483647
148148
The maximum degree a node can have to be considered.
149149
similarity_metric : str, default="JACCARD"
150-
The similarity metric to use for computation.
150+
The similarity metric to use for computation. JACCARD, OVERLAP or COSINE.
151151
use_components : bool | str, default=False
152-
Whether to compute similarity within connected components.
152+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
153153
relationship_weight_property : str | None, default=None
154154
The relationship property to use as weights.
155155
relationship_types : list[str] | None, default=None
@@ -223,9 +223,9 @@ def stream(
223223
upper_degree_cutoff : int, default=2147483647
224224
The maximum degree a node can have to be considered.
225225
similarity_metric : str, default="JACCARD"
226-
The similarity metric to use for computation.
226+
The similarity metric to use for computation. JACCARD, OVERLAP or COSINE.
227227
use_components : bool | str, default=False
228-
Whether to compute similarity within connected components.
228+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
229229
relationship_weight_property : str | None, default=None
230230
The relationship property to use as weights.
231231
relationship_types : list[str] | None, default=None
@@ -306,9 +306,9 @@ def write(
306306
upper_degree_cutoff : int, default=2147483647
307307
The maximum degree a node can have to be considered.
308308
similarity_metric : str, default="JACCARD"
309-
The similarity metric to use for computation.
309+
The similarity metric to use for computation. JACCARD, OVERLAP or COSINE.
310310
use_components : bool | str, default=False
311-
Whether to compute similarity within connected components.
311+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
312312
relationship_weight_property : str | None, default=None
313313
The relationship property to use as weights.
314314
relationship_types : list[str] | None, default=None
@@ -382,9 +382,9 @@ def estimate(
382382
upper_degree_cutoff : int, default=2147483647
383383
The maximum degree a node can have to be considered.
384384
similarity_metric : str, default="JACCARD"
385-
The similarity metric to use for computation.
385+
The similarity metric to use for computation. JACCARD, OVERLAP or COSINE.
386386
use_components : bool | str, default=False
387-
Whether to compute similarity within connected components.
387+
Whether to compute similarity within connected components. Given a string uses the node property stored in the graph
388388
relationship_weight_property : str | None, default=None
389389
The relationship property to use as weights.
390390
relationship_types : list[str] | None, default=None

0 commit comments

Comments
 (0)