modulefdoc_graphs
Dependency graphs: which modules use which, what procedures call, how types extend each other and how files depend on each other. Graphs are laid out and drawn by fdot, in parallel, each by one thread.
graph LR
A[Relations] --> B[List of graphs]
B --> C
subgraph each thread
C[Find what a graph holds] --> D[Layout with fdot]
D --> E[Drawing]
end
E --> F[Graphs of the pages]
The relations and the list are made once, by one thread, and only read after that. Each thread has working space of its own, so a graph is built as it is drawn, and needs no files.
Uses
Used by
Variables
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| EDGE_COLOURS | character(len=*) | privateparameterdimension(*) | [character(len=7)::'#3657c9','#1d7a55','#a15c00','#b3261e','#6a4fb3','#0b7285','#a61e69','#5c6f2d'] | |
| NUM_RELATIONS | integer | privateparameter | 4 | |
| REL_CALLS | integer | parameter | 2 | procedures called |
| REL_FILES | integer | parameter | 4 | files depended on |
| REL_INHERITS | integer | parameter | 3 | types extended |
| REL_USES | integer | parameter | 1 | modules used |
Types
adjacency_tprivate
Each direction of one relation, for each entity.
graph_job_tprivate
A graph waiting to be drawn.
graph_set_t
The graphs of a project.
graph_tprivate
A graph of a page.
int_list_tprivate
A list of entities.
label_list_tprivate
Labels of edges.
walk_tprivate
The working space of one thread, sized once, for finding what a graph holds.
Functions
graphs_wantedprivate
True if entity id is drawn with graphs.
is_simple_bindingprivate
True if a graph shows binding id as the procedure it binds: it binds one, which can be shown.
Subroutines
add_nodeprivate
Add node id to a description. The key to the graphs in fdoc.js lists these colours.
build_graphs
Build the graphs of the project: those of s%graph, and of entities that ask for them.
build_relationsprivate
Build the relations between entities.
connectprivate
Add an edge, once. With label, the edge is dashed and labelled: components of a type have one.
describe_graphprivate
Put the graph of job in g. found is false if it would have only one node or no edges. Nodes go
in as they are reached, and edges after them. A node that leads to more than graph_maxdepth and
graph_maxnodes let in has an edge to a node ....
draw_graphprivate
Lay out and draw one graph.
draw_graphsprivate
Lay out and draw jobs. A graph that turns out to have nothing to show gets no drawing.
draw_someprivate
The share of draw_graphs of one thread, with working space of its own.
neighbours_ofprivate
What is next to the one root of job in its graph: the first entities that describe_graph reaches,
in the same order and within the same limit, so that a list of them matches the drawing.
node_linkprivate
The link of entity id from a page, or '' if it has no page.
visible_callsrecursiveprivate
Add edges from from to what id calls. What cannot be shown is replaced by what it calls.