Criterion for nonlocal quantum behavior in networks : compar