Packages

PregelEx - A distributed graph processing framework in Elixir

Current section

Files

Jump to
pregel_ex lib pregel_ex application.ex
Raw

lib/pregel_ex/application.ex

defmodule PregelEx.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
{Registry, keys: :unique, name: PregelEx.GraphRegistry},
{Registry, keys: :unique, name: PregelEx.VertexRegistry},
PregelEx.GraphSupervisor
]
opts = [strategy: :one_for_one, name: PregelEx.Supervisor]
Supervisor.start_link(children, opts)
end
end