fn construct_ref_edges(mut graph: Graph) -> Graph {
        // Search through the set of events and there is a reference to an event
        // in the trace, then add a reference edge
        let len = graph.nodes.len();
        for i in 0..len {
            if let Some(ref_span) = graph.nodes[i].ref_spans {
                for j in 0..len {
                    if graph.nodes[j].source == ref_span {
                        graph.add_ref_edge(i, j);
                    }
                }
            }
        }

        graph
    }
/// Find all the events which have contextual references to other spans and
/// construct reference edges between the two events.  The reference edge marks
/// a _contextual_ dependency of the source event on the target event.
Find all the events which have contextual references to other spans and
construct reference edges between the two events.  The reference edge marks
a _contextual_ dependency of the source event on the target event.
Find all the events which have contextual references to other spans and construct reference edges between the two events . The reference edge marks a _contextual_ dependency of the source event on the target event .
fn construct_ref_edges(mut graph: Graph) -> Graph {
        // Search through the set of events and there is a reference to an event
        // in the trace, then add a reference edge
        let len = graph.nodes.len();
        for i in 0..len {
            if let Some(ref_span) = graph.nodes[i].ref_spans {
                for j in 0..len {
                    if graph.nodes[j].source == ref_span {
                        graph.add_ref_edge(i, j);
                    }
                }
            }
        }
        graph
    }
fn construct_ref_edges ( mut graph : Graph ) -> Graph { // Search through the set of events and there is a reference to an event // in the trace, then add a reference edge let len = graph . nodes . len ( ) ; for i in 0 .. len { if let Some ( ref_span ) = graph . nodes [ i ] . ref_spans { for j in 0 .. len { if graph . nodes [ j ] . source == ref_span { graph . add_ref_edge ( i , j ) ; } } } } graph }
Find all the events which have contextual references to other spans and
construct reference edges between the two events.
Find all the events which have contextual references to other spans and construct reference edges between the two events .
graph
Graph
graph
Graph