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.99 x86.64 (2190, heads/master-e3be503618, Jan 31 2023 13:48:52)