-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgraph.j2
More file actions
20 lines (17 loc) · 705 Bytes
/
Copy pathgraph.j2
File metadata and controls
20 lines (17 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
digraph {
rankdir=LR; // prints nodes from left to right
newrank=true; // allows rank=same within subgraphs
splines=false; // prints straight lines, instead of curved splines (ortho)
compound=true; // allows edges between subgraphs
{% for component in components %}
{{ component.node_str() }}
{% endfor %}
{% for source_file1 in source_files %}
{% for source_file2 in source_file1.includes %}
{{ source_file1.edge_str() }} -> {{ source_file2.edge_str() }}
{% if source_file1.component != source_file2.component %}
[ltail="{{ source_file1.component.id() }}", lhead="{{ source_file2.component.id() }}"];
{% endif %}
{% endfor %}
{% endfor %}
}