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 Serializable
trait Product
trait Equals
trait GraphQuery
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product