Definition at line 13 of file defects_dump_graph.py.
◆ __init__()
def defects_dump_graph.Node.__init__ |
( |
|
self, |
|
|
str |
name |
|
) |
| |
◆ __repr__()
def defects_dump_graph.Node.__repr__ |
( |
|
self | ) |
|
Definition at line 38 of file defects_dump_graph.py.
39 return (f
'<Node {self.name} parents="{[n.name for n in self.parents]}" '
40 f
'children="{[n.name for n in self.children]}">')
◆ dot()
str defects_dump_graph.Node.dot |
( |
|
self, |
|
|
|
current_node = False , |
|
|
str |
tooltip = "" , |
|
|
bool |
viewing_dependents = False |
|
) |
| |
Definition at line 42 of file defects_dump_graph.py.
42 def dot(self, current_node=False, tooltip: str =
"", viewing_dependents: bool =
False) -> str:
43 color =
"grey" if self.primary
else "white"
45 color =
"darkslategray2" if viewing_dependents
else "gold"
47 tooltip = (
"[Virtual]" if self.virtual
else "[Primary]") +
" " + tooltip
53 if viewing_dependents:
54 url = f
"../{self.name}.svg"
55 label +=
r"\n[Deep dependants]"
57 url = f
"{DEPENDSON_DIR}/{self.name}.svg"
58 label +=
r"\n[Dependencies]"
60 url =
"%s.svg" % self.name
62 return f
'{self.name} [fillcolor={color}, style=filled, URL="{url}", tooltip="{tooltip}", label="{label}"];'
◆ get_name()
str defects_dump_graph.Node.get_name |
( |
|
self | ) |
|
◆ has_primary_children()
bool defects_dump_graph.Node.has_primary_children |
( |
|
self | ) |
|
Definition at line 31 of file defects_dump_graph.py.
31 def has_primary_children(self) -> bool:
32 return any(c.primary
for c
in self.children)
◆ only_primary_children()
bool defects_dump_graph.Node.only_primary_children |
( |
|
self | ) |
|
Definition at line 35 of file defects_dump_graph.py.
35 def only_primary_children(self) -> bool:
36 return all(c.primary
for c
in self.children)
◆ primary()
bool defects_dump_graph.Node.primary |
( |
|
self | ) |
|
◆ virtual()
bool defects_dump_graph.Node.virtual |
( |
|
self | ) |
|
◆ children
defects_dump_graph.Node.children |
◆ name
defects_dump_graph.Node.name |
◆ parents
defects_dump_graph.Node.parents |
The documentation for this class was generated from the following file:
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.