MeliGraph.Graph.Edge (MeliGraph v0.3.1)

Copy Markdown View Source

Struct representando uma aresta no grafo.

Summary

Functions

Cria uma nova aresta com timestamp atual e peso opcional (default 1.0).

Types

t()

@type t() :: %MeliGraph.Graph.Edge{
  inserted_at: integer(),
  source: term(),
  target: term(),
  type: atom(),
  weight: float()
}

Functions

new(source, target, type, weight \\ 1.0)

@spec new(term(), term(), atom(), float()) :: t()

Cria uma nova aresta com timestamp atual e peso opcional (default 1.0).