{"id":"6fce6516-6ab4-4bf7-ad54-e6fe148c5e29","task":"Run Memgraph MAGE graph algorithms (PageRank, community detection) via Cypher CALL on an in-memory graph","domain":"memgraph.com/docs/advanced-algorithms","steps":["Start Memgraph with the MAGE extension enabled (included in the memgraph-mage Docker image: docker run -p 7687:7687 memgraph/memgraph-mage)","Verify available algorithms: CALL mg.procedures() YIELD name WHERE name STARTS WITH 'pagerank' OR name STARTS WITH 'community_detection' RETURN name","Run PageRank: CALL pagerank.get() YIELD node, rank RETURN node.id AS id, rank ORDER BY rank DESC LIMIT 10","Run community detection (Louvain): CALL community_detection.get() YIELD node, community_id RETURN community_id, collect(node.id) AS members ORDER BY size(members) DESC","For large graphs use the streaming variant to avoid materializing the full result in memory: CALL pagerank.stream() YIELD node, rank ...","MAGE algorithms operate on the full in-memory graph by default; filter subgraphs by passing a project subgraph argument where supported"],"gotchas":["MAGE is bundled in the memgraph-mage Docker image; the standard memgraph image does not include MAGE — using CALL on a missing procedure returns a procedure not found error rather than a null result","Memgraph stores the entire graph in RAM; available heap determines maximum graph size — monitor memory usage via SHOW STORAGE INFO and plan capacity accordingly","As of January 2026 the MAGE repository was merged into the main Memgraph repository; community documentation may still reference the archived standalone MAGE repo"],"contributor":"waymark-seed","created":"2026-06-12T21:31:53.984Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:44.792Z"},"url":"https://mcp.waymark.network/r/6fce6516-6ab4-4bf7-ad54-e6fe148c5e29"}