Package-level declarations

Types

Link copied to clipboard
abstract class Edge<NodeType : Node> : Persistable, Cloneable

This class represents an edge between two Node objects in a Neo4J graph. It can be used to store additional information that relate to the relationship between the two nodes that belong to neither of the two nodes directly.

Properties

Link copied to clipboard

A shortcut to return all AstEdge edges starting from this node.

Link copied to clipboard

A shortcut to return all Dataflow edges starting from this node.

Functions

Link copied to clipboard
fun <EdgeType : Edge<Node>> MutableList<Node>.add(target: Node, builder: EdgeType.() -> Unit): Boolean
Link copied to clipboard
inline fun <EdgeType : Edge<out Node>> Node.allEdges(noinline predicate: (EdgeType) -> Boolean = { true }): Collection<EdgeType>

This function returns a subgraph containing all Edges starting from this Node that are of the specific EdgeType. Optionally, a predicate can be used to filter the edges even further.

Link copied to clipboard
inline fun <EdgeType : Edge<out Node>> Node.edges(noinline predicate: (EdgeType) -> Boolean = { true }): Collection<EdgeType>

Returns all Edges of EdgeType directly attached to this Node. Optionally, a predicate can be used to filter the edges even further.