package automenta.spacenet.var.graph.patterns; public class RandomTreeNet /*extends MemoryNet<String, String>*/ { // public RandomTreeNet(int depth, int maxChildren) { // super(); // // Node<String, String> root = addNode(RandomStringNet.newName()); // // populate(root, depth, maxChildren); // } // // private void populate(Node<String, String> n, int depth, int maxChildren) { // if (depth == 0) // return; // // int c = (int)Maths.random(0, maxChildren+1); // // for (int i = 0; i < c; i++) { // Node<String, String> j = addNode(RandomStringNet.newName()); // Link<String, String> l = linkSpatial(RandomStringNet.newName(), n, j); // populate(j, depth-1, maxChildren); // } // } // // // }