| Package | Description |
|---|---|
| io.ataraxic.nomicflux.voyageur | |
| io.ataraxic.nomicflux.voyageur.fold |
| Modifier and Type | Method and Description |
|---|---|
default <S,Acc> Acc |
Graph.guidedCutFold(Fn1<Context<A,N,E,I>,Boolean> destinationCheck,
State<S,FoldContinue<N>> contextGetter,
Fn2<Acc,Context<A,N,E,I>,State<S,Acc>> accumulator,
S defState,
Acc defAcc)
Fold a graph into an accumulation, using stateful methods to guide the traversal of the graph, and a cutoff
function to end the fold early
|
default <S,Acc> Acc |
Graph.guidedFold(State<S,FoldContinue<N>> contextGetter,
Fn2<Acc,Context<A,N,E,I>,State<S,Acc>> accumulator,
S defState,
Acc defAcc)
Fold a graph into an accumulation, using stateful methods to guide the traversal of the graph.
|
| Modifier and Type | Method and Description |
|---|---|
static <N> FoldContinue<N> |
FoldContinue.decompose() |
static <N> FoldContinue<N> |
FoldContinue.endFold() |
static <N> FoldContinue<N> |
FoldContinue.nextNode(N node)
Provide the next node in a fold.
|
static <N> FoldContinue<N> |
FoldContinue.nodeOrDecompose(Maybe<N> node)
Provide the next node if available, otherwise decompose the graph arbitrarily.
|
static <N> FoldContinue<N> |
FoldContinue.nodeOrTerminate(Maybe<N> node)
Provide the next node if available, otherwise terminate the fold.
|
| Modifier and Type | Method and Description |
|---|---|
Acc |
FoldG.checkedApply(Fn1<Context<A,N,E,I>,Boolean> destinationCheck,
Fn1<S,FoldContinue<N>> contextGetter,
Fn3<S,Acc,Context<A,N,E,I>,S> updateState,
S defState,
Fn3<S,Acc,Context<A,N,E,I>,Acc> accumulator,
Acc defAcc,
G graph)
Deprecated.
|
static <A,N extends Node<A>,E extends Edge<A,N,E>,I extends Iterable<E>,G extends Graph<A,N,E,I,G>,S,Acc> |
FoldG.foldG(Fn1<Context<A,N,E,I>,Boolean> destinationCheck,
Fn1<S,FoldContinue<N>> contextGetter,
Fn3<S,Acc,Context<A,N,E,I>,S> updateState,
S defState,
Fn3<S,Acc,Context<A,N,E,I>,Acc> accumulator,
Acc defAcc,
G graph)
Deprecated.
|
static <A,N extends Node<A>,E extends Edge<A,N,E>,I extends Iterable<E>,G extends Graph<A,N,E,I,G>,S,Acc> |
FoldG.guidedCutFold(Fn1<Context<A,N,E,I>,Boolean> destinationCheck,
Fn1<S,FoldContinue<N>> contextGetter,
Fn3<S,Acc,Context<A,N,E,I>,S> updateState,
S defState,
Fn3<S,Acc,Context<A,N,E,I>,Acc> accumulator,
Acc defAcc,
G graph)
Deprecated.
|
static <A,N extends Node<A>,E extends Edge<A,N,E>,I extends Iterable<E>,G extends Graph<A,N,E,I,G>,S,Acc> |
FoldG.guidedFold(Fn1<S,FoldContinue<N>> contextGetter,
Fn3<S,Acc,Context<A,N,E,I>,S> updateState,
S defState,
Fn3<S,Acc,Context<A,N,E,I>,Acc> accumulator,
Acc defAcc,
G graph)
Deprecated.
|
Copyright © 2020. All Rights Reserved.