adding node agnostic friend matching, should make this a class method