Skip to content

Commit

Permalink
Merge pull request #253 from ReactiveBayes/237-we-should-specify-that…
Browse files Browse the repository at this point in the history
…-the-internal-data-structure-used-is-bi-partite-fg-in-the-developers-documentation

Add bipartite graph note
  • Loading branch information
wouterwln authored Sep 30, 2024
2 parents 4807717 + 8448911 commit b5521a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/developers_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ GraphPPL.is_variable
GraphPPL.is_factor
```

!!! note
The representation of a `GraphPPL.Model` is a bipartite graph where both variables and factor functions are represented as nodes. The internal representation is therefore not a Forney-style factor graph.

## Contexts, Submodels and retrieving NodeLabels
After creating a `GraphPPL.Model` structure, it is important to know about the attached `Context`. The `Context` structure contains all variable and factor nodes in the scope of the model, and contains a `Context` stucture for all submodels. The context of a model can be accessed by the `GraphPPL.getcontext()` function:
```@docs
Expand Down

0 comments on commit b5521a5

Please sign in to comment.