Refactoring: Identify knot type with enum enstead of two boolean getters. Avoiding future costs if we need to introduce another node type.