Package net.bmahe.genetics4j.gp.utils
Class TreeNodeUtils
java.lang.Object
net.bmahe.genetics4j.gp.utils.TreeNodeUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
static <T> boolean
static <T> int
Simple strict comparison.static <T> int
static String
toStringTreeNode
(TreeNode<Operation<?>> node) static String
toStringTreeNode
(Genotype genotype, int chromosomeIndex)
-
Field Details
-
TREE_NODE_OPERATION_COMPARATOR
-
-
Constructor Details
-
TreeNodeUtils
private TreeNodeUtils()
-
-
Method Details
-
compare
Simple strict comparison.Does not take in account commutativity or rotations
- Type Parameters:
T
-- Parameters:
rootA
-rootB
-- Returns:
-
compare
-
areSame
-
areSame
-
toStringTreeNode
-
toStringTreeNode
-