You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcp_server/src/mcp_server_neo4j_gds/path_algorithm_specs.py
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -609,4 +609,48 @@
609
609
"required": [],
610
610
},
611
611
),
612
+
types.Tool(
613
+
name="max_flow",
614
+
description="Given source nodes, target nodes and relationships with capacity constraints, the max-flow algorithm assigns a flow to each relationship to achieve maximal transport from source to target. "
615
+
"The flow is a scalar property for each relationship and must satisfy 1) Flow into a node equals flow out of a node (preservation). 2) Flow is restricted by the capacity of a relationship",
616
+
inputSchema={
617
+
"type": "object",
618
+
"properties": {
619
+
"sourceNodes": {
620
+
"type": "array",
621
+
"items": {"type": "string"},
622
+
"description": "List of source node names from which flow originates.",
623
+
},
624
+
"targetNodes": {
625
+
"type": "array",
626
+
"items": {"type": "string"},
627
+
"description": "List of target node names to which flow is sent.",
628
+
},
629
+
"nodeIdentifierProperty": {
630
+
"type": "string",
631
+
"description": "Property name to use for identifying nodes (e.g., 'name', 'Name', 'title'). Use get_node_properties_keys to find available properties.",
632
+
},
633
+
"capacityProperty": {
634
+
"type": "string",
635
+
"description": "Name of the relationship property that specifies the maximum flow capacity for each edge.",
636
+
},
637
+
"nodeLabels": {
638
+
"type": "array",
639
+
"items": {"type": "string"},
640
+
"description": "The node labels used to project and run max flow on. Nodes with different node labels will be ignored. Do not specify to run for all nodes",
641
+
},
642
+
"relTypes": {
643
+
"type": "array",
644
+
"items": {"type": "string"},
645
+
"description": "The relationships types used to project and run max flow on. Relationship types of different type will be ignored. Do not specify to run for all relationship types",
0 commit comments