• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • opam-format

  • Documentation
  • opam-format lib
  • OpamPackage .Graph .Parallel .G .E Module
package opam-format
  • opam-format
    • OpamFile
      • Aliases
      • BestEffortRead
      • Changes
      • Comp
      • Config
        • BestEffort
      • Descr
      • Dot_config
      • Dot_install
      • Environment
      • File_attributes
      • IO_FILE
      • InitConfig
      • LegacyState
      • Lines
      • OPAM
      • Package_index
      • Pinned_legacy
      • PkgList
      • Repo
      • Repo_config_legacy
      • Repos_config
        • BestEffort
      • Stats
      • SwitchExport
      • SwitchSelections
        • BestEffort
      • Switch_config
        • BestEffort
      • Syntax
      • URL
      • Wrappers
    • OpamFilter
    • OpamFormat
      • I
      • V
    • OpamFormatConfig
      • E
    • OpamFormula
    • OpamInterpLexer
    • OpamLineLexer
    • OpamPackage
      • Graph
        • Dot
        • E
        • Parallel
          • G
            • E
            • Topological
            • V
            • Vertex
        • Topological
        • V
      • Map
      • Name
        • Map
        • Set
          • Op
      • Set
        • Op
      • Version
        • Map
        • Set
          • Op
    • OpamPath
      • Builddir
      • LAYOUT
      • Switch
        • Default
        • DefaultF
          • L
        • Overlay
    • OpamPp
      • Op
      • STR
    • OpamRepositoryName
      • Map
      • Set
        • Op
    • OpamSwitch
      • Map
      • Set
        • Op
    • OpamSysPkg
      • Map
      • Set
        • Op
    • OpamTypes
      • GenericPackage
    • OpamTypesBase
    • OpamVariable
      • Full
        • Map
        • Set
          • Op
      • Map
      • Set
        • Op
Legend:
Library
Module
Module type
Parameter
Class
Class type

Edges have type E.t and are labeled with type E.label. src (resp. dst) returns the origin (resp. the destination) of a given edge.

Edges are ORDERED_TYPE.

type t
val compare : t -> t -> int

Edges are directed.

type vertex = vertex
val src : t -> vertex

Edge origin.

val dst : t -> vertex

Edge destination.

Edges are labeled.

type label = OpamParallel.dependency_label
val create : vertex -> label -> vertex -> t

create v1 l v2 creates an edge from v1 to v2 with label l

val label : t -> label

Get the label of an edge.

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct