add-vertex ( vertex edges graph -- )

Factor handbook » The language » Collections » Directed graph utilities

Factor handbook » The language » Collections » Directed graph utilities

Next: | remove-vertex ( vertex edges graph -- ) |

Vocabulary

graphs

Inputs

Outputs

None

Word description

Adds a vertex to a directed graph, with edges as the outward edges from the vertex.

Side effects

Modifies graph

Definition

graphs

Inputs

vertex | an object |

edges | a sequence |

graph | an assoc mapping vertices to hash-set of edges |

Outputs

None

Word description

Adds a vertex to a directed graph, with edges as the outward edges from the vertex.

Side effects

Modifies graph

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.100 x86.64 (2240, heads/master-b90c89f82e, Sep 26 2023 19:59:25)