Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Dag

Includes methods for testing whether a network is a Directed Acyclic Graph (DAG).

see

com.bayesserver.Network#isDag

Hierarchy

  • Dag

Index

Methods

Methods

Static isDag

  • isDag(network: Network): boolean
  • isDag(network: Network, ignore: Iterable<Link>, extra: Iterable<Link>): boolean
  • Determines if a network is a Directed Acyclic Graph (DAG).

    see

    com.bayesserver.Network#isDag

    Parameters

    • network: Network

      The network to test.

    Returns boolean

    true if a dag, false otherwise.

  • Determines if a network is a DAG (Directed Acyclic Graph).

    The test allows the exclusion of certain links, and the inclusion of extra links that have not yet been added to the network.

    see

    com.bayesserver.Network#isDag

    Parameters

    • network: Network

      The network to test.

    • ignore: Iterable<Link>

      Optional links to ignore. Can be null.

    • extra: Iterable<Link>

      Optional extra links to include. Can be null.

    Returns boolean

    true if a dag, false otherwise.