use of jcog.data.graph.AdjGraph in project narchy by automenta.
the class QuerySpider method starting.
@Override
protected void starting(NAR nar) {
nar.onTask(t -> {
if (t.isQuestOrQuestion() && t.term().hasVarQuery()) {
Term tt = t.term();
AdjGraph<Term, Float> g = spider(nar, t, 3);
g.nodes.keysView().takeWhile(r -> {
new UnifySubst(null, nar, (z) -> {
// TODO
return true;
}, Param.TTL_MIN()).unify(tt, r.v, true);
return true;
});
}
});
}
Aggregations