private static CCVertex setNode(final CCVertex v, final int nodeId,
            final List<CCNode> nodes) {
        for (CCNode n : nodes) {
            if (n.getNodeId() == nodeId) {
                v.setCCNode(n);
                break;
            }
        }
        return v;
    }