Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
72 changes: 0 additions & 72 deletions pages/advanced-algorithms.md

This file was deleted.

80 changes: 80 additions & 0 deletions pages/advanced-algorithms.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { Steps } from 'nextra/components'

# Advanced algorithms

If you require procedures designed to solve specific graph problems, there is a
number of advanced algorithms available in Memgraph.

[BFS](/advanced-algorithms/built-in-graph-algorithms#breadth-first-search),
[DSF](/advanced-algorithms/built-in-graph-algorithms#depth-first-search), [Weighted shortest
path](/advanced-algorithms/built-in-graph-algorithms#weighted-shortest-path),
[All shortest
paths](/advanced-algorithms/built-in-graph-algorithms#all-shortest-paths) are
built-in algorithms you can run using their specific clauses.

For more algorithms, check the **Memgraph Advanced Graph Extensions** (**MAGE**)
library. It is an [open-source repository](https://github.com/memgraph/mage)
that contains [graph algorithms](/advanced-algorithms/available-algorithms)
written by the team behind Memgraph and its users in the form of query modules.
The project aims to give everyone the tools they need to tackle the most
interesting and challenging graph analytics problems.

**Query module** is a concept introduced by Memgraph and it refers to
user-defined procedures, grouped into modules that extend the Cypher query
language. Procedures are implementations of various algorithms in multiple
programming languages and they are all runnable inside Memgraph.

## Quick start

<Steps>

### Install MAGE

If you started Memgraph with the `memgraph-platform` or `memgraph-mage` Docker
image, MAGE is already included and you can skip to step 3.

If you are using Linux, you can [install MAGE from
source](/advanced-algorithms/install-mage#linux).

The execution of graph algorithms can be accelerated with the GPU by using the
[Memgraph X NVIDIA cuGraph](/advanced-algorithms/install-mage#mage--nvidia-cugraph) version of the library.

### Load query modules

If your instance was already running when you installed MAGE, you need to
execute the following query to load them:

```
CALL mg.load_all();
```

Check [the list](/advanced-algorithms/available-algorithms) of available graph
algorithms and query modules.

### Call procedures

You are ready to [call procedures](/advanced-algorithms/run-algorithms) within
queries and tackle that graph analytics problem that's been keeping you awake.

</Steps>

## Memgraph compatibility

With changes in Memgraph API, MAGE started to track version numbers. Check out
MAGE compatibility with Memgraph versions.

| MAGE version | Memgraph version |
|--------------|-------------------|
| >= 1.6 | >= 2.5.2 |
| >= 1.4 | >= 2.4.0 |
| >= 1.0 | >= 2.0.0 |
| ^0 | >= 1.4.0 &lt;= 1.6.1 |


## Custom query modules

You can [create your own graph algorithms](/custom-query-modules) and query
modules using C/C++ or Python, and
[contribute](/custom-query-modules/contribute) them to the MAGE library.


2 changes: 1 addition & 1 deletion pages/advanced-algorithms/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"available-algorithms": "Available algorithms",
"built-in-graph-algorithms": "Built-in graph algorithms",
"install-mage": "Install MAGE",
"available-algorithms": "Available algorithms",
"run-algorithms": "Run algorithms",
"utilize-networkx": "Utilize NetworkX"
}
Loading