View Source Graph.Serializer behaviour (hologram v0.2.0)

This module defines the Serializer behavior for graphs.

Summary

Callbacks

serialize(t)

@callback serialize(Graph.t()) :: {:ok, binary()} | {:error, term()}

Functions

encode_label(label)

escape_quotes(str)

escape_quotes(arg, acc)

get_vertex_label(graph, id, v)

indent(tabs)

quoted(str)