Idris2Doc : Data.Graph.Indexed.Query.Visited

Data.Graph.Indexed.Query.Visited

(source)

Reexports

importpublic Data.Buffer.Mutable

Definitions

mvisit : MBuffersn->Finn->F1's
  Set the current node to "visited".

Totality: total
Visibility: export
mvisitAll : MBuffersn->List (Finn) ->F1's
  Set all given nodes to "visited"

Totality: total
Visibility: export
mvisited : MBuffersn->Finn->F1sBool
  True, if the current node has been visited.

Totality: total
Visibility: export
munvisited : MBuffersn->Finn->F1sBool
  True, if the current node has not yet been visited.

Totality: total
Visibility: export
visiting : (k : Nat) ->WithMBufferka->a
  Allocate a linear byte array and use it to run the given
computation, discarding it at the end.

This is a convenience alias for `visiting` for those cases, where
we already have a function returning a linear pair of values.

Totality: total
Visibility: export
recordVisited : Nat->Type
  Immutable value for keeping track of the visited nodes in a graph.

Note: Profiling on the Chez backend showed, that this is considerably
faster than `MVisited` for `k < 64`. For larger `k`, however,
`MVisited` outperforms this by far.

Totality: total
Visibility: export
Constructor: 
V : Integer->Visitedk

Projection: 
.vis : Visitedk->Integer
ini : Visitedk
  Initial `Visited` state

Totality: total
Visibility: export
visit : Fink->Visitedk->Visitedk
  Set the current node to "visited".

Totality: total
Visibility: export
visitAll : List (Fink) ->Visitedk->Visitedk
  Set all given nodes to "visited".

Totality: total
Visibility: export
visited : Fink->Visitedk->Bool
  True, if the current node has been visited.

Totality: total
Visibility: export
unvisited : Fink->Visitedk->Bool
  True, if the current node has not yet been visited.

Totality: total
Visibility: export