Clarity.Vertex.GraphGroupProvider protocol (Clarity v0.5.1)

Copy Markdown View Source

Protocol for providing graph group information for vertices.

This protocol allows vertices to specify which group they belong to in graph visualizations, which is used for organizing and grouping related vertices together.

Summary

Types

t()

All the types that implement this protocol.

Functions

Returns the group to which the vertex belongs in the graph.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

graph_group(vertex)

@spec graph_group(t()) :: [iodata()]

Returns the group to which the vertex belongs in the graph.

This is used for grouping vertices in the visualization. Returns a list of iodata representing the group hierarchy.