MCPcopy Create free account
hub / github.com/comaps/comaps / IntersectionLen

Function IntersectionLen

tools/openlr/helpers.cpp:198–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198size_t IntersectionLen(Graph::EdgeVector a, Graph::EdgeVector b)
199{
200 sort(a.begin(), a.end());
201 sort(b.begin(), b.end());
202 return set_intersection(a.begin(), a.end(), b.begin(), b.end(), CounterIterator()).GetCount();
203}
204
205bool SuffixEqualsPrefix(Graph::EdgeVector const & a, Graph::EdgeVector const & b, size_t len)
206{

Callers 1

PathOverlappingLenFunction · 0.85

Calls 4

CounterIteratorClass · 0.85
beginMethod · 0.45
endMethod · 0.45
GetCountMethod · 0.45

Tested by

no test coverage detected