Path 1: 52 calls (1.0)

'data' (4) 'data.clientmodule_test' (4) 'data.property_pattern' (4) 'data.suppliermodule_test' (4) 'data.clientmodule_test.Ancestor' (4) 'data.supplie...

NodeType (52)

NodeProperties (52)

1def emit_node(
2        self,
3        name: str,
4        type_: NodeType,
5        properties: NodeProperties | None = None,
6    ) -> None:
7        """Create a new node.
8
9        Nodes can be classes, packages, participants etc.
10        """
11        if properties is None:
12            properties = NodeProperties(label=name)
13        shape = SHAPES[type_]
14        color = properties.color if properties.color is not None else self.DEFAULT_COLOR
15        style = "filled" if color != self.DEFAULT_COLOR else "solid"
16        label = self._build_label_for_node(properties)
17        label_part = f", label=<{label}>" if label else ""
18        fontcolor_part = (
19            f', fontcolor="{properties.fontcolor}"' if properties.fontcolor else ""
20        )
21        self.emit(
22            f'"{name}" [color="{color}"{fontcolor_part}{label_part}, shape="{shape}", style="{style}"];'
23        )