}
return set.toArray();
} else {
List<Object> answer = new ArrayList<Object>();
if (input instanceof GraphableNode) {
GraphableNode node = (GraphableNode) input;
answer.addAll(node.getChildrenGraph());
} else if (input != null) {
answer.add(input);
if (input instanceof Node) {
Node aNode = (Node) input;
answer.addAll(aNode.getChildrenList());