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

Copy Markdown View Source

Protocol for providing graph shape information for vertices.

This protocol allows vertices to specify their visual shape in graph visualizations using Graphviz DOT notation.

Summary

Types

t()

All the types that implement this protocol.

Functions

Returns the shape to be used for the vertex in graph visualization.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

shape(vertex)

@spec shape(t()) :: String.t()

Returns the shape to be used for the vertex in graph visualization.

This is used to determine how the vertex will be rendered in the graph using Graphviz DOT shape names (e.g., "box", "circle", "component").