# `Nous.KnowledgeBase.Link`
[🔗](https://github.com/nyo16/nous/blob/v0.17.1/lib/nous/knowledge_base/link.ex#L1)

A directed edge in the wiki graph between two entries.

Links represent relationships like backlinks, cross-references,
concept connections, and parent-child hierarchies.

# `link_type`

```elixir
@type link_type() ::
  :backlink | :cross_reference | :concept | :see_also | :parent_child
```

# `t`

```elixir
@type t() :: %Nous.KnowledgeBase.Link{
  created_at: DateTime.t(),
  from_entry_id: String.t(),
  id: String.t(),
  kb_id: String.t() | nil,
  label: String.t() | nil,
  link_type: link_type(),
  to_entry_id: String.t(),
  weight: float()
}
```

# `new`

```elixir
@spec new(map()) :: t()
```

Creates a new Link from attributes.

Requires `:from_entry_id` and `:to_entry_id`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
