public ServiceFamily(YodiiGraphVertex rootVertex, YodiiLayout parent) { SubPlugins = new Dictionary <IPluginInfo, YodiiGraphVertex>(); SubServices = new Dictionary <IServiceInfo, ServiceFamily>(); Debug.Assert(rootVertex.IsService); _parent = parent; RootVertex = rootVertex; RootVertexSize = _parent.VertexSizes[RootVertex]; RootService = rootVertex.LabServiceInfo.ServiceInfo; if (RootService.Generalization != null) { var generalizationFamily = parent.FindOrCreateServiceFamily(RootService.Generalization); ParentServiceFamily = generalizationFamily; ParentServiceFamily.RegisterSubService(this); } }