Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
dfsForestFrom :: GraphKL a -> [a] -> Forest aalgebraic-graphs Data.Graph.Typed Compute the depth-first search forest of a graph, searching from each of the given vertices in order. Note that the resulting forest does not necessarily span the whole graph, as some vertices may be unreachable. In the following examples we will use the helper function:
(%) :: Ord a => (GraphKL a -> b) -> AdjacencyMap a -> b f % x = f (fromAdjacencyMap x)
for greater clarity.forest $ (dfsForestFrom % edge 1 1) [1] == vertex 1 forest $ (dfsForestFrom % edge 1 2) [0] == empty forest $ (dfsForestFrom % edge 1 2) [1] == edge 1 2 forest $ (dfsForestFrom % edge 1 2) [2] == vertex 2 forest $ (dfsForestFrom % edge 1 2) [2,1] == vertices [1,2] isSubgraphOf (forest $ dfsForestFrom % x $ vs) x == True dfsForestFrom % x $ vertexList x == dfsForest % x dfsForestFrom % vertices vs $ vs == map (\v -> Node v []) (nub vs) dfsForestFrom % x $ [] == [] dfsForestFrom % (3 * (1 + 4) * (1 + 5)) $ [1,4] == [ Node { rootLabel = 1 , subForest = [ Node { rootLabel = 5 , subForest = [] } , Node { rootLabel = 4 , subForest = [] }]
sampleFmtToPcmFormat :: SampleFmt y => y -> Formatalsa-pcm Sound.ALSA.PCM No documentation available.
c'GLFW_FORMAT_UNAVAILABLE :: Num a => abindings-GLFW Bindings.GLFW No documentation available.
c'GLFW_OPENGL_FORWARD_COMPAT :: Num a => abindings-GLFW Bindings.GLFW No documentation available.
c'GLFW_PLATFORM_ERROR :: Num a => abindings-GLFW Bindings.GLFW No documentation available.
isUniform :: Ix i => BitArray i -> Maybe Boolbitwise Data.Array.BitArray Short-circuit bitwise reduction: Nothing if any bits differ.
isUniform :: Ix i => IOBitArray i -> IO (Maybe Bool)bitwise Data.Array.BitArray.IO Short-circuit bitwise reduction: Nothing when any bits differ, Just when all bits are the same.
isUniform :: Ix i => STBitArray s i -> ST s (Maybe Bool)bitwise Data.Array.BitArray.ST Short-circuit bitwise reduction: Nothing when any bits differ, Just when all bits are the same.
isUniform :: Bits b => b -> Maybe Boolbitwise Data.Bits.Bitwise Determine if a Bits is all 1s, all 0s, or neither.
-
bluefin-internal Bluefin.Internal.Examples No documentation available.