Method: pylint.graph.DotBackend.emit_edge
Calls: 33, Exceptions: 0, Paths: 1Back
Path 1: 33 calls (1.0)
'yep' (6) 'c' (4) 'input.func_w0401_package.all_the_things' (4) 'hoho' (3) 'b' (2) 'input.func_noerror_cycle.b' (2) 'input.func_noerror_cycle.a' (2) '...
'labas' (6) 'input.w0401_cycle' (6) 'a' (4) 'hoho' (3) 'b' (2) 'input.func_noerror_cycle.a' (2) 'input.func_noerror_cycle.b' (2) 'input.func_w0401' (2...
{} (33)
1def emit_edge(self, name1: str, name2: str, **props: Any) -> None:
2 """Emit an edge from <name1> to <name2>.
3
4 For edge properties: see https://www.graphviz.org/doc/info/attrs.html
5 """
6 attrs = [f'{prop}="{value}"' for prop, value in props.items()]
7 n_from, n_to = normalize_node_id(name1), normalize_node_id(name2)
8 self.emit(f"{n_from} -> {n_to} [{', '.join(sorted(attrs))}];")