Archeometer.Analysis.Xref (Archeometer v0.1.1)

Functions for generating a dependency graph from a list of given modules.

Accepted output formats are "dot" (graphviz), "png" and "mermaid".

Link to this section Summary

Functions

Creates a dependency graph between the modules given as parameters

Link to this section Functions

Link to this function

gen_graph(modules, format, db_name \\ default_db_name())

Creates a dependency graph between the modules given as parameters

Parameters

  • modules is a list of module names, e.g. [Foo.Bar, Foo.Rex, Foo.Zorg]
  • format can be one of "dot" (graphviz), "png", or "mermaid".
  • db_name is the filename of the DB to be used. If not given uses default DB.

Returns

  • The binary representing the graph, if the operation was completed successfully.
  • {:error, reason} if not.