added test for triangle_counting example
removed warning
removed unused code
added test for potential_friends example
revert unintended changes