The OSPF::LSDB::View module converts the content of a OSPF::LSDB instance into a graphviz dot string.
Routers and Networks become nodes,
the links between them are directed edges.
The different OSPF vertices are displayed with drawing styles that are documented in the legend.

During conversion the link state database is checked.
Each inconsistency is reported as OSPF::LSDB error and the color of the object changes.
The colors are prioritized by severity.

Write the most severe warning about OSPF inconsistencies into the label of the dot graph.
This warning determines also the color of the node or edge.
If the additional subkey all is given,
all warnings are added.

Inconsistencies within the OSPF link state database are visualized with different colors.
The error message may be printed into the graph as warnings.
All warnings may be optained with the get_errors method.