Make Node class agnostic as to degree