class NodeBuilder implements ItemBuilder {

    @Override
    public Item[] getItems(Graph graph) {<FILL_FUNCTION_BODY>}

    @Override
    public String getType() {
        return ItemBuilder.NODE_BUILDER;
    }
}


        Item[] items = new NodeItem[graph.getNodeCount()];
        int i = 0;
        for (Node n : graph.getNodes()) {
            NodeItem nodeItem = new NodeItem(n);
            nodeItem.setData(NodeItem.X, n.x());
            nodeItem.setData(NodeItem.Y, -n.y());
            nodeItem.setData(NodeItem.Z, n.z());
            nodeItem.setData(NodeItem.SIZE, n.size() * 2f);
            nodeItem.setData(NodeItem.COLOR, n.getColor());
            items[i++] = nodeItem;
        }
        return items;
    
<no_super_class>