98 lines
2.3 KiB
HTML
98 lines
2.3 KiB
HTML
![]() |
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>Title</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h3>INFO</h3>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Vrcholy</th>
|
||
|
<th>Arky</th>
|
||
|
<th>Binary</th>
|
||
|
|
||
|
<th>Antimagic</th>
|
||
|
<th>Super</th>
|
||
|
<th>Strict</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>{{ graph.get_properties.vertex }}</td>
|
||
|
<td>{{ graph.get_properties.arc }}</td>
|
||
|
<td>{{ graph.binary }}</td>
|
||
|
|
||
|
<td>{% if graph.antimagic %}{{ graph.antimagic }}{% else %}---{% endif %}</td>
|
||
|
<td>{% if graph.strong %}{{ graph.strong }}{% else %}---{% endif %}</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
{% for arc in arcs %}
|
||
|
{% if forloop.last and type_name == "cyklus" %}
|
||
|
{% if arc.vertex_out.id > arc.vertex_in.id %}
|
||
|
({{ arc.vertex_out.label }})--{{ arc.label }}-->({{ arc.vertex_in.label }})
|
||
|
{% else %}
|
||
|
({{ arc.vertex_in.label }})<--{{ arc.label }}--({{ arc.vertex_out.label }})
|
||
|
{% endif %}
|
||
|
{% elif forloop.last and type_name == "cesta" %}
|
||
|
{% if arc.vertex_out.id > arc.vertex_in.id %}
|
||
|
({{ arc.vertex_out.label }})--{{ arc.label }}-->({{ arc.vertex_in.label }})
|
||
|
{% else %}
|
||
|
({{ arc.vertex_in.label }})<--{{ arc.label }}--({{ arc.vertex_out.label }})
|
||
|
{% endif %}
|
||
|
{% else %}
|
||
|
{% if arc.vertex_out.id > arc.vertex_in.id %}
|
||
|
({{ arc.vertex_in.label }})<--{{ arc.label }}--
|
||
|
{% else %}
|
||
|
({{ arc.vertex_out.label }})--{{ arc.label }}-->
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
<br>
|
||
|
{% for vertex in vertices %}
|
||
|
{{ vertex.get_properties.in_weight }} --------
|
||
|
{% endfor %}
|
||
|
<br>
|
||
|
{% for vertex in vertices %}
|
||
|
{{ vertex.get_properties.out_weight }} --------
|
||
|
{% endfor %}
|
||
|
|
||
|
|
||
|
<h3>Arky</h3>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>OUT</th>
|
||
|
<th>IN</th>
|
||
|
<th>Váha</th>
|
||
|
</tr>
|
||
|
{% for arc in arcs %}
|
||
|
<tr>
|
||
|
<td>{{ arc.vertex_out.label }}</td>
|
||
|
<td>{{ arc.vertex_in.label }}</td>
|
||
|
<td>{{ arc.label }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
<h3>Váhy</h3>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Váha</th>
|
||
|
<th>index</th>
|
||
|
<th>m_d</th>
|
||
|
<th>OUT</th>
|
||
|
<th>IN</th>
|
||
|
</tr>
|
||
|
{% for vertex in vertices %}
|
||
|
<tr>
|
||
|
<td>{{ vertex.label }}</td>
|
||
|
<td>{{ vertex.index }}</td>
|
||
|
<td>{{ vertex.get_properties.max_degree }}</td>
|
||
|
<td>{{ vertex.get_properties.out_weight }}</td>
|
||
|
<td>{{ vertex.get_properties.in_weight }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
|
||
|
</body>
|
||
|
</html>
|