erpc_analysis::graph::projections

Function build_gds_project_cypher

source
pub fn build_gds_project_cypher(
    projection_name: &str,
    node_label: &str,
    relationship_types: &HashMap<String, String>,
    _relationship_properties_to_project: Option<&[String]>,
) -> String
Expand description

Builds the Cypher query string for creating (projecting) an in-memory GDS graph.

§Arguments

  • projection_name - The desired name for the in-memory graph projection.
  • node_label - The label of the nodes from the source graph to include in the projection.
  • relationship_types - A map where keys are relationship types (String) from the source graph and values are their desired orientation in the projection (e.g., “NATURAL”,“REVERSE”, “UNDIRECTED”).
  • relationship_properties_to_project - Optional. A slice of relationship property keys.

§Returns

A String containing the fully formed Cypher query for creating the GDS graph projection.