 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file. 1 package ca.uqac.lif.synthia.tree;
3 import java.util.HashSet;
21 m_nodes =
new HashSet<Node<T>>();
41 Set<Node<T>> nodes =
new HashSet<Node<T>>(
m_nodes.size());
55 max = Math.max(max, n.getChildren().size());
Set< Node< T > > getNodes()
Gets the set of nodes in the last graph generated.
Node< T > addChild(Node< T > c)
Adds a child to this node.
Picker< Node< T > > m_nodePicker
void connect(Node< T > n1, Node< T > n2)
Connects two nodes in a graph.
void reset()
Puts the picker back into its initial state.
int getMaxDegree()
Gets the maximum out degree in a set of nodes in the last graph generated.
Simple implementation of a labeled nodel.
GraphPicker(Picker< Node< T >> node_picker, Picker< Integer > size)
void reset()
Puts the picker back into its initial state.