Esempio n. 1
0
 public void AddNode(RGNode node)
 {
     if (node == null || HadNode(node.Data.UID))
     {
         return;
     }
     nodes.Add(node);
 }
Esempio n. 2
0
 public bool UpdateInfo(LinkInfo data, GEdgeParts view, RGNode from, RGNode to)
 {
     if (from == null || to == null)
     {
         Core.ZLog.Warning("create edge error that from or to is null!");
         return(false);
     }
     Data   = data;
     viewer = view;
     viewer.UpdateInfo(data);
     NodeFrom = from;
     NodeTo   = to;
     return(true);
 }