GraphMine

graphmine-core / io.github.sof3.graphmine.feature / handle

handle

inline fun <Node : FeatureNode<Node, Inst>, Inst : FeatureNodeInstance<Inst, Node>, reified Ev : FeatureEvent> FeatureGraph.handle(node: Node, crossinline fn: (inst: Inst, event: Ev) -> Unit): Unit

A convenient wrapper for FeatureGraph.addEdge and SingleFeatureEdge construction (for one node)

inline fun <Node1 : FeatureNode<Node1, Inst1>, Inst1 : FeatureNodeInstance<Inst1, Node1>, Node2 : FeatureNode<Node2, Inst2>, Inst2 : FeatureNodeInstance<Inst2, Node2>, reified Ev : FeatureEvent> FeatureGraph.handle(node1: Node1, node2: Node2, crossinline fn: (inst1: Inst1, inst2: Inst2, event: Ev) -> Unit): Unit

A convenient wrapper for FeatureGraph.addEdge and FeatureEdge construction (for two nodes)