public static boolean isRootNode ( LeftTupleNode node , TerminalNode removingTN ) { return node . getType ( ) == NodeTypeEnums . LeftInputAdapterNode || isNonTerminalTipNode ( node . getLeftTupleSource ( ) , removingTN ) ; }
Returns whether the node is the root of a segment . Lians are always the root of a segment .