Migrating node/edge sets to bit fields