Skip to content

Commit 381a5e7

Browse files
committed
Move api files into categorized packages
1 parent 64e33f7 commit 381a5e7

File tree

86 files changed

+96
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+96
-94
lines changed

graphdatascience/procedure_surface/api/graph_sampling_endpoints.py renamed to graphdatascience/procedure_surface/api/catalog/graph_sampling_endpoints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def rwr(
3434
"""
3535
Random walk with restarts (RWR) samples the graph by taking random walks from a set of start nodes.
3636
37-
On each step of a random walk, there is a probability that the walk stops, and a new walk from one of the start
38-
nodes starts instead (i.e. the walk restarts). Each node visited on these walks will be part of the sampled
39-
subgraph. The resulting subgraph is stored as a new graph in the Graph Catalog.
37+
On each step of a random walk, there is a probability that the walk stops, and a new walk from one of the start
38+
nodes starts instead (i.e. the walk restarts). Each node visited on these walks will be part of the sampled
39+
subgraph. The resulting subgraph is stored as a new graph in the Graph Catalog.
4040
4141
Parameters
4242
----------
@@ -46,7 +46,7 @@ def rwr(
4646
The name of the new graph that is stored in the graph catalog.
4747
start_nodes : list of int, optional
4848
IDs of the initial set of nodes in the original graph from which the sampling random walks will start.
49-
By default, a single node is chosen uniformly at random.
49+
By default, a single node is chosen uniformly at random.
5050
restart_probability : float, optional
5151
The probability that a sampling random walk restarts from one of the start nodes.
5252
Default is 0.1.

graphdatascience/procedure_surface/api/catalog_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from graphdatascience.procedure_surface.api.catalog.node_label_endpoints import NodeLabelEndpoints
1111
from graphdatascience.procedure_surface.api.catalog.node_properties_endpoints import NodePropertiesEndpoints
1212
from graphdatascience.procedure_surface.api.catalog.relationships_endpoints import RelationshipsEndpoints
13-
from graphdatascience.procedure_surface.api.graph_sampling_endpoints import GraphSamplingEndpoints
13+
from graphdatascience.procedure_surface.api.catalog.graph_sampling_endpoints import GraphSamplingEndpoints
1414

1515

1616
class CatalogEndpoints(ABC):

graphdatascience/procedure_surface/api/centrality/__init__.py

Whitespace-only changes.

graphdatascience/procedure_surface/api/articlerank_endpoints.py renamed to graphdatascience/procedure_surface/api/centrality/articlerank_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from graphdatascience.procedure_surface.api.base_result import BaseResult
99
from graphdatascience.procedure_surface.api.catalog.graph_api import GraphV2
1010

11-
from .estimation_result import EstimationResult
11+
from graphdatascience.procedure_surface.api.estimation_result import EstimationResult
1212

1313

1414
class ArticleRankEndpoints(ABC):

graphdatascience/procedure_surface/api/articulationpoints_endpoints.py renamed to graphdatascience/procedure_surface/api/centrality/articulationpoints_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from graphdatascience.procedure_surface.api.base_result import BaseResult
77
from graphdatascience.procedure_surface.api.catalog.graph_api import GraphV2
88

9-
from .estimation_result import EstimationResult
9+
from graphdatascience.procedure_surface.api.estimation_result import EstimationResult
1010

1111

1212
class ArticulationPointsEndpoints(ABC):

graphdatascience/procedure_surface/api/betweenness_endpoints.py renamed to graphdatascience/procedure_surface/api/centrality/betweenness_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from graphdatascience.procedure_surface.api.base_result import BaseResult
99
from graphdatascience.procedure_surface.api.catalog.graph_api import GraphV2
1010

11-
from .estimation_result import EstimationResult
11+
from graphdatascience.procedure_surface.api.estimation_result import EstimationResult
1212

1313

1414
class BetweennessEndpoints(ABC):

graphdatascience/procedure_surface/api/celf_endpoints.py renamed to graphdatascience/procedure_surface/api/centrality/celf_endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
from graphdatascience.procedure_surface.api.catalog.graph_api import GraphV2
99

10-
from .base_result import BaseResult
11-
from .estimation_result import EstimationResult
10+
from graphdatascience.procedure_surface.api.base_result import BaseResult
11+
from graphdatascience.procedure_surface.api.estimation_result import EstimationResult
1212

1313

1414
class CelfEndpoints(ABC):

graphdatascience/procedure_surface/api/closeness_endpoints.py renamed to graphdatascience/procedure_surface/api/centrality/closeness_endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
from graphdatascience.procedure_surface.api.catalog.graph_api import GraphV2
99

10-
from .base_result import BaseResult
11-
from .estimation_result import EstimationResult
10+
from graphdatascience.procedure_surface.api.base_result import BaseResult
11+
from graphdatascience.procedure_surface.api.estimation_result import EstimationResult
1212

1313

1414
class ClosenessEndpoints(ABC):

graphdatascience/procedure_surface/api/closeness_harmonic_endpoints.py renamed to graphdatascience/procedure_surface/api/centrality/closeness_harmonic_endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
from graphdatascience.procedure_surface.api.catalog.graph_api import GraphV2
99

10-
from .base_result import BaseResult
11-
from .estimation_result import EstimationResult
10+
from graphdatascience.procedure_surface.api.base_result import BaseResult
11+
from graphdatascience.procedure_surface.api.estimation_result import EstimationResult
1212

1313

1414
class ClosenessHarmonicEndpoints(ABC):

graphdatascience/procedure_surface/api/degree_endpoints.py renamed to graphdatascience/procedure_surface/api/centrality/degree_endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
from graphdatascience.procedure_surface.api.catalog.graph_api import GraphV2
99

10-
from .base_result import BaseResult
11-
from .estimation_result import EstimationResult
10+
from graphdatascience.procedure_surface.api.base_result import BaseResult
11+
from graphdatascience.procedure_surface.api.estimation_result import EstimationResult
1212

1313

1414
class DegreeEndpoints(ABC):

0 commit comments

Comments
 (0)