Module / v2.0.0-beta.13

@typed/fx/RefGraph

29 unique exports available through this public import path, including their members and aliases.

import * as RefGraph from "@typed/fx/RefGraph";

Constructors

  • directed

    function

    Creates a new empty directed RefGraph.

  • make

    function

    Creates a new RefGraph from a Graph, Effect, or Fx.

  • undirected

    function

    Creates a new empty undirected RefGraph.

Derived queries

Optional queries

  • findEdge

    variable

    Find an edge matching a predicate.

  • findNode

    variable

    Find a node matching a predicate.

  • getEdge

    variable

    Get an edge’s data.

  • getNode

    variable

    Get a node’s data.

State models

  • RefGraph

    interface

    A RefGraph is a RefSubject specialized over a Graph.

State predicates

  • hasEdge

    variable

    Check if an edge exists.

  • hasNode

    variable

    Check if a node exists.

  • isAcyclic

    variable

    Check if the graph is acyclic.

  • isBipartite

    variable

    Check if the graph is bipartite (undirected only).

State updates