We discussed this before going with cidList. So for adding each component, to go through the componentList array to get all cids for components and then using find method on the array each time to see if the cid exists looked a bit too much to do every time we add a component. The graphs have around 10-15 components and the list looked a better option.