MCPcopy Create free account
hub / github.com/apache/datafusion / add_node

Method add_node

datafusion/common/src/display/graphviz.rs:69–92  ·  view source on GitHub ↗
(
        &self,
        f: &mut fmt::Formatter,
        id: usize,
        label: &str,
        tooltip: Option<&str>,
    )

Source from the content-addressed store, hash-verified

67 }
68
69 pub fn add_node(
70 &self,
71 f: &mut fmt::Formatter,
72 id: usize,
73 label: &str,
74 tooltip: Option<&str>,
75 ) -> fmt::Result {
76 if let Some(tooltip) = tooltip {
77 writeln!(
78 f,
79 " {}[shape=box label={}, tooltip={}]",
80 id,
81 GraphvizBuilder::quoted(label),
82 GraphvizBuilder::quoted(tooltip),
83 )
84 } else {
85 writeln!(
86 f,
87 " {}[shape=box label={}]",
88 id,
89 GraphvizBuilder::quoted(label),
90 )
91 }
92 }
93
94 pub fn add_edge(
95 &self,

Callers 3

mutateMethod · 0.80
f_downMethod · 0.80
pre_visitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected