tilltnet / egor

R Package for importing and analysing ego-centered-network data.
http://egor.tillt.net
GNU Affero General Public License v3.0
23 stars 4 forks source link

Error when plotting an egonetwork including the ego where none of the alters are connected to each other #86

Open lauraschlcht opened 7 months ago

lauraschlcht commented 7 months ago

With plot_egograms you can only use includeego = T if there is at least one alter-alter tie. In a network where the alters are only connected to the ego, and there are no connections between the alters (creating a sort of "star" with the ego in the middle), the following error message will occur:

 Error in i_set_edge_attr(x, attr(value, "name"), index = value, value = attr(value,  : 
  Length of new attribute value must be 1 or 4, the number of target edges, not 0