This module defines the Serializer behavior for graphs.
@callback serialize(Graph.t()) :: {:ok, binary()} | {:error, term()}