A generic Graph library for Scala.
Scala Versions: 2.13, 3 Scala Targets: JVM, JS
- Models a graph with directed edges
inboundandoutboundmethods for any node
- Models a graph with directed edges, and can hold data in the nodes and edges
inboundandoutboundmethods for any node
- Supports routefinding across any
SimpleGraphorDataGraph - Supports finding multiple routes at once with
multivariant
validate- check if anySimpleGraphorDataGraphis a Directed Acyclic Graph, flags any nodes with cyclesisDag- checks if a graph is a DAG, returns a Boolean
countDisconnectedSubgraphs- checks how many disconnected subgraphs are in a graph
- Can render any
DataGraphwhich is a DAG into a mermaid graph
- Interface which can be implemented to describe how to run a
DataGraph
- Runs a
DagVisitoragainst a compatibleDataGraph - Runs concurrently, starts nodes as soon as they can be run
- Can run different
RunModes, indicating the direction edges runFlowwill makeA->BrunAthenB, this is the defaultDependencywill makeA->BrunBthenA