`ArrowValuedGraph<N,V>`

An `ArrowValuedGraph`

is a directed `ValuedGraph`

where the edges have values. This structure is useful for situations in which elements of the same type can have relations to each other, and those relations have some associated value. The relations are directed, so `A -> B`

does not imply that `B -> A`

.

info

Like all `Graph`

implementations, these graphs can contain cycles and isolated nodes are allowed.

The `@rimbu/core`

package exports the following immutable ArrowValuedGraph TypeScript types:

Name | Description |
---|---|

`ArrowValuedGraph<N, V>` | a generic directed valued graph with nodes of type N, and edge values of type V |

`ArrowValuedGraphHashed<N, V>` | a valued directed graph with hashed nodes of type N, and edge values of type V |

`ArrowValuedGraphSorted<N, V>` | a valued directed graph with sorted nodes of type N, and edge values of type V |