FindNeighbors
org.llm4s.knowledgegraph.query.GraphQuery.FindNeighbors
case class FindNeighbors(nodeId: String, direction: Direction, relationshipType: Option[String], maxDepth: Int) extends GraphQuery
Find neighbors of a specific node.
Value parameters
- direction
-
Direction of traversal (Outgoing, Incoming, Both)
- maxDepth
-
Maximum traversal depth (defaults to 1 for direct neighbors)
- nodeId
-
The ID of the node to find neighbors for
- relationshipType
-
Optional filter by relationship type
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GraphQueryclass Objecttrait Matchableclass Any
Members list
In this article