Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memgraph 2.21 documentation changes #1009

Merged
merged 38 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ae1822e
Adding bugfix #2361 to release notes
hal-eisen-MG Oct 7, 2024
3b38e40
Merge branch 'main' into memgraph-2-21
hal-eisen-MG Oct 7, 2024
0edda5a
Added changelog for #2352, #2366 and #2371
hal-eisen-MG Oct 7, 2024
50858b2
Typo
hal-eisen-MG Oct 7, 2024
16b6392
Remove trailing slash in URL
hal-eisen-MG Oct 8, 2024
2f4e8a1
Escaping curly braces
hal-eisen-MG Oct 8, 2024
2839e3d
HA bugfixes from Andi (2421 and 2422)
hal-eisen-MG Oct 18, 2024
ffc1c4c
Merge branch 'main' into memgraph-2-21
hal-eisen-MG Oct 18, 2024
87b2747
changelog for mgp::memory deprecation
hal-eisen-MG Oct 18, 2024
d109432
Re-ordering 2.21 and 2.20.1
hal-eisen-MG Oct 18, 2024
559a30e
Remove toolchain-v4 and obsolete versions of Linux
hal-eisen-MG Oct 23, 2024
34e2533
Changelog for 2430 (coordinators using only 1 log type
hal-eisen-MG Oct 25, 2024
11b1223
Add callout for breaking change (coordinator log store)
hal-eisen-MG Oct 25, 2024
74e4e5b
C++ API remove mgp::memory usage note (#1016)
Ignition Nov 3, 2024
42d1d8d
Add changelog item for the query module memory guard
gitbuda Nov 3, 2024
81c334d
Iteration under the release notes
gitbuda Nov 3, 2024
c16deab
Add Leiden static community detection algorithm (#1014)
DavIvek Nov 3, 2024
4c418e5
Add the show schema info changelog item
gitbuda Nov 3, 2024
ce2a29d
Add all changelog items, Grammarly check TBD
gitbuda Nov 4, 2024
39c37ac
Improve breaking change
as51340 Nov 4, 2024
0c6849d
Add explanation for exception handling in Leiden community detection …
DavIvek Nov 4, 2024
9820a55
Spatial index and data type docs (#1018)
imilinovic Nov 5, 2024
d8b6001
Update the changelog
gitbuda Nov 5, 2024
4beeac2
Improve getting building from soruce
gitbuda Nov 5, 2024
e5b7d7b
Improve changelog
gitbuda Nov 5, 2024
0ca7b7c
Add Debian 12 toolchain link
gitbuda Nov 5, 2024
5e6272c
Merge main
gitbuda Nov 5, 2024
a441da1
Merge branch 'main' into memgraph-2-21
katarinasupe Nov 5, 2024
3198a17
update changelog titles
katarinasupe Nov 5, 2024
86097b7
Merge branch 'main' into memgraph-2-21
katarinasupe Nov 5, 2024
7bb479d
update algorithm pages (#1020)
DavIvek Nov 5, 2024
102d8f1
Add custom SSL for Lab configuration page (#1030)
AlexIchenskiy Nov 5, 2024
c8ec32f
Merge branch 'main' into memgraph-2-21
katarinasupe Nov 5, 2024
b1f2d2e
update cypher differences
katarinasupe Nov 5, 2024
98f071b
Add more details related to the schema info v2 (#1029)
andrejtonev Nov 5, 2024
68cba02
Merge branch 'main' into memgraph-2-21
gitbuda Nov 6, 2024
20d0335
Remove redundant empty lines
gitbuda Nov 6, 2024
e1298b9
More lines
gitbuda Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pages/advanced-algorithms/available-algorithms.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ library](/advanced-algorithms/install-mage).

| Algorithms | Lang | Description |
|------------------------------------------------------------------------------------------------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [algo](/advanced-algorithms/available-algorithms/algo) | C++ | The algo module provides users with a powerful set of graph algorithms, enabling users to perform complex graph-based operations and computations, such as graph traversal, edge detection, and more. |
| [algo](/advanced-algorithms/available-algorithms/algo) | C++ | The algo module provides users with a powerful set of graph algorithms, enabling users to perform complex graph-based operations and computations, such as graph traversal, edge detection, and more. |
| [betweenness_centrality](/advanced-algorithms/available-algorithms/betweenness_centrality) | C++ | The betweenness centrality of a node is defined as the sum of the of all-pairs shortest paths that run through the node, divided by the number of all-pairs shortest paths in the graph. The algorithm has O(nm) time complexity. |
| [biconnected_components](/advanced-algorithms/available-algorithms/biconnected_components) | C++ | Algorithm for calculating maximal biconnected subgraph. A biconnected subgraph is a subgraph with a property that if any vertex were to be removed, the graph will remain connected. |
| [bipartite_matching](/advanced-algorithms/available-algorithms/bipartite_matching) | C++ | Algorithm for calculating maximum bipartite matching, where matching is a set of nodes chosen in such a way that no two edges share an endpoint. |
Expand All @@ -36,6 +36,7 @@ library](/advanced-algorithms/install-mage).
| [graph_coloring](/advanced-algorithms/available-algorithms/graph_coloring) | Python | Algorithm for assigning labels to the graph elements subject to certain constraints. In this form, it is a way of coloring the graph vertices such that no two adjacent vertices are of the same color. |
| [katz_centrality](/advanced-algorithms/available-algorithms/katz_centrality) | C++ | Katz centrality is a centrality measurement that outputs a node's influence based on the number of shortest paths and their weighted length. |
| [kmeans_clustering](/advanced-algorithms/available-algorithms/kmeans_clustering) | Python | An algorithm for clustering given data. |
| [leiden_community_detection](/advanced-algorithms/available-algorithms/leiden_community_detection) | C++ | The Leiden method for community detection is an improvement over the Louvain method, designed to find communities with maximum modularity in a graph while addressing issues of disconnected communities. Runs in _O_(L\*E) time and _O_(V\*E) space, where *L* is the number of iterations of the algorithm, E is the number of edges, V is the number of nodes. |
| [max_flow](/advanced-algorithms/available-algorithms/max_flow) | Python | An algorithm for finding a flow through a graph such that it is the maximum possible flow. |
| [node_similarity](/advanced-algorithms/available-algorithms/node_similarity) | C++ | A module that contains similarity measures for calculating the similarity between two nodes. |
| [pagerank](/advanced-algorithms/available-algorithms/pagerank) | C++ | Algorithm that yields the influence measurement based on the recursive information about the connected nodes influence. |
Expand Down
10 changes: 7 additions & 3 deletions pages/advanced-algorithms/available-algorithms/algo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ filters.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.
- `start_node: Node` ➡ The first node of the returned path.
- `end_node: Node` ➡ The final node of the returned path.
- `relationship_types: List[String]` ➡ A list of relationship filters, explained below.
Expand Down Expand Up @@ -103,7 +104,9 @@ including any self-referencing relationships.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.

- `nodes: List[Node]` ➡ A list of all the input nodes.

{<h4> Output: </h4>}
Expand Down Expand Up @@ -146,7 +149,8 @@ In case you don't want to use geospatial types, or you want a custom heuristic,

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.
- `start: Node` ➡ The starting node.
- `target: Node` ➡ The target node.
- `config: Map` ➡ The configuration map.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ The procedure returns the betweenness centrality values.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.

- `directed: boolean (default=True)` ➡ If `False` the direction of the relationships is ignored.
- `normalized: boolean (default=True)` ➡ If `True` the betweenness values are normalized by
`2/((n-1)(n-2))` for graphs, and `1/((n-1)(n-2))` for directed graphs where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ The procedure finds biconnected components.
{<h4> Input: </h4>}


- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.



{<h4> Output: </h4>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ relationship connects nodes between these sets.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.


{<h4> Output: </h4>}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ creates two disjoint graph components.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.


{<h4> Output: </h4>}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ Computes graph communities using the Louvain method.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `weight: string (default=null)` ➡ Specifies the default relationship weight. If not set,
the algorithm uses the `weight` relationship attribute when present and otherwise
treats the graph as unweighted.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.

- `weight: string (default=null)` ➡ Specifies the name of the property containing the edge weight. Users can set their own weight property;
if this property is not specified, the algorithm uses the `weight` edge attribute by default. If neither is set, each edge's weight defaults to `1`.
To utilize a custom weight property, the user must set the `--storage-properties-on-edges=true` flag.
- `coloring: boolean (default=False)` ➡ If set, use the graph coloring heuristic for effective parallelization.
- `min_graph_shrink: integer (default=100000)` ➡ The graph coarsening optimization stops upon shrinking the graph to this many nodes.
- `community_alg_threshold: double (default=0.000001)` ➡ Controls how long the algorithm iterates. When the gain in modularity
Expand All @@ -72,7 +74,7 @@ Computes graph communities using the Louvain method.

{<h4> Output: </h4>}

- `node: Vertex` ➡ Graph node.
- `node: Vertex` ➡ A graph node for which the algorithm was performed and returned as part of the results.
- `community_id: integer` ➡ Community ID. Defaults to $-1$ if the node does not belong to any community.

{<h4> Usage: </h4>}
Expand All @@ -90,12 +92,14 @@ Computes graph communities over a subgraph using the Louvain method.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.

- `subgraph_nodes: List[Node]` ➡ List of nodes in the subgraph.
- `subgraph_relationships: List[Relationship]` ➡ List of relationships in the subgraph.
- `weight: str (default=null)` ➡ Specifies the default relationship weight. If not set,
the algorithm uses the `weight` relationship attribute when present and otherwise
treats the graph as unweighted.
- `weight: string (default=null)` ➡ Specifies the name of the property containing the edge weight. Users can set their own weight property;
if this property is not specified, the algorithm uses the `weight` edge attribute by default. If neither is set, each edge's weight defaults to `1`.
To utilize a custom weight property, the user must set the `--storage-properties-on-edges=true` flag.
- `coloring: bool (default=False)` ➡ If set, use the graph coloring heuristic for effective parallelization.
- `min_graph_shrink: int (default=100000)` ➡ The graph coarsening optimization stops upon shrinking the graph to this many nodes.
- `community_alg_threshold: double (default=0.000001)` ➡ Controls how long the algorithm iterates. When the gain in modularity
Expand All @@ -108,7 +112,7 @@ Computes graph communities over a subgraph using the Louvain method.

{<h4> Output: </h4>}

- `node: Vertex` ➡ Graph node.
- `node: Vertex` ➡ A graph node for which the algorithm was performed and returned as part of the results.
- `community_id: int` ➡ Community ID. Defaults to $-1$ if the node does not belong to any community.

{<h4> Usage: </h4>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ the user should check if that is indeed the case.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.

- `directed: boolean (default=False)` ➡ Specifies whether the graph is directed. If not set,
the graph is treated as undirected.
- `weighted: boolean (default=False)` ➡ Specifies whether the graph is weighted. If not set,
Expand All @@ -88,7 +90,7 @@ the user should check if that is indeed the case.

{<h4> Output: </h4>}

- `node: Vertex` ➡ Graph node.
- `node: Vertex` ➡ A graph node for which the algorithm was performed and returned as part of the results.
- `community_id: integer` ➡ Community ID. If the node is not associated with any
community, defaults to $-1$.

Expand All @@ -108,11 +110,13 @@ are none, defaults to calling `set()` with default parameters.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.


{<h4> Output: </h4>}

- `node: Vertex` ➡ Graph node.
- `node: Vertex` ➡ A graph node for which the algorithm was performed and returned as part of the results.
- `community_id: integer` ➡ Community ID. Defaults to $-1$ if the node does not belong to any community.

{<h4> Usage: </h4>}
Expand All @@ -131,7 +135,9 @@ changes applied in the latest graph update and returns the results.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.

- `createdVertices: mgp.List[mgp.Vertex]` ➡ Nodes created in the latest graph
update.
- `createdEdges: mgp.List[mgp.Edge]` ➡ Relationships created in the latest graph update.
Expand All @@ -144,7 +150,7 @@ changes applied in the latest graph update and returns the results.

{<h4> Output: </h4>}

- `node: Vertex` ➡ Graph node.
- `node: Vertex` ➡ A graph node for which the algorithm was performed and returned as part of the results.
- `community_id: integer` ➡ Community ID. If the node is not associated with any
community, defaults to $-1$.

Expand Down Expand Up @@ -182,7 +188,9 @@ Resets the algorithm to its initial state.

{<h4> Input: </h4>}

- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
If subgraph is not specified, the algorithm is computed on the entire graph by default.


{<h4> Output: </h4>}

Expand Down
Loading
Loading