Current section

Files

Jump to
libgraph lib graph serializer.ex
Raw

lib/graph/serializer.ex

defmodule Graph.Serializer do
@moduledoc """
This module defines the Serializer behavior for graphs.
"""
@callback serialize(Graph.t) :: {:ok, binary} | {:error, term}
defmacro __using__(_) do
quote do
@behaviour Graph.Serializer
end
end
end