Exemple #1
0
 bool IEquatable <CallGraph> .Equals(CallGraph other)
 {
     return(CallingGraphToString(this) == CallingGraphToString(other));
 }
Exemple #2
0
 private string CallingGraphToString(CallGraph callGraph)
 {
     return
         ($"Edge: [{string.Join(", ", callGraph.Edges.OrderBy(a => a.Source).ThenBy(a => a.Target).Select(a => a.ToString()))}] Vertices: [{string.Join(", ", callGraph.Vertices.OrderBy(a => a))}]");
 }