Remove unused attrCount field in Graph
Update example to get IDs generated from a reference passed to the Graph