package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

containers-3.14.tbz
sha256=c94fba0c7c54349b7021c31f85120495197ddde438c574d48362ec669bf7e564
sha512=b33588d9df66a858083616cc70cd82822cecc2dcec8902759e72648e5c41c887556da0a28317f388d34afe319309c20dd8baa7508d003dddff00e83869fad861

doc/containers.scc/Containers_scc/index.html

Module Containers_sccSource

Sourcetype 'a iter = ('a -> unit) -> unit
Sourcemodule type ARG = sig ... end
Sourcemodule type S = sig ... end
Sourcemodule Make (A : ARG) : S with module A = A
Sourceval scc : tbl:(module Hashtbl.S with type key = 'node) -> graph:'graph -> children:('graph -> 'node -> 'node iter) -> nodes:'node list -> unit -> 'node list list

Compute the strongly connected components of the given graph, reachable from nodes.

  • parameter graph

    the graph state

  • parameter children

    maps a node to its direct descendants (children)

  • parameter nodes

    initial nodes.

  • parameter tbl

    a hashtable implementation that takes nodes as keys

OCaml

Innovation. Community. Security.