I have 3000+ ego networks in one database. I can not seem to figure out the code to run a density analysis per ego network. The data is set up with one line per node in the network with a respondent ID for each network- thus there are three lines of data for an ego network with three people. Any ideas?