MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / print_edge

Function print_edge

graphlite/src/ast/pretty_printer.rs:352–367  ·  view source on GitHub ↗
(edge: &Edge, indent: usize)

Source from the content-addressed store, hash-verified

350}
351
352fn print_edge(edge: &Edge, indent: usize) {
353 if let Some(identifier) = &edge.identifier {
354 debug!("{}Identifier: {}", get_indent(indent), identifier);
355 }
356
357 if !edge.labels.is_empty() {
358 debug!("{}Labels: [{}]", get_indent(indent), edge.labels.join(", "));
359 }
360
361 debug!("{}Direction: {:?}", get_indent(indent), edge.direction);
362
363 if let Some(properties) = &edge.properties {
364 debug!("{}Properties", get_indent(indent));
365 print_property_map(properties, indent + 1);
366 }
367}
368
369fn print_property_map(prop_map: &PropertyMap, indent: usize) {
370 for property in &prop_map.properties {

Callers 1

print_path_patternFunction · 0.85

Calls 2

print_property_mapFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected