# `Macaw.Draw.Layout.Layered.Result`
[🔗](https://github.com/dcoai/macaw_draw/blob/v0.1.0/lib/macaw/draw/layout/layered/result.ex#L1)

A layered drawing (spec/08 §11.8), as `Macaw.Draw.Layout.Layered.generate/4` answers it.

- `nodes`: one per graph node in node order, `%{id, row, x, y, width, height, rank,
  order}`, `x` and `y` the center, `row` the nodes slot's row or `nil`, `order` the
  node's place among its rank's nodes, left to right (top to bottom across `:lr`).
- `edges`: one per graph edge in edge order, `%{index, row, source, target, points,
  path, reversed, label, end_angle}`: `points` the route's waypoints from the source to
  the target, `path` its `Macaw.Draw.IR.Path`, `reversed` whether cycle breaking laid
  it out reversed (it is still drawn source to target), `label` the label's center or
  `nil`, `end_angle` the bearing at the target end.
- `width` and `height`, the drawing's extent with its margin on each side;
  `crossings`, the kept order's weighted crossing count; `bounded`, whether network
  simplex stopped at its pivot bound.

# `t`

```elixir
@type t() :: %Macaw.Draw.Layout.Layered.Result{
  bounded: boolean(),
  crossings: number(),
  edges: [map()],
  height: number(),
  nodes: [map()],
  width: number()
}
```

---

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