public void RemoveConnection(AtlasConnection con) { ConnectionNodesCheck(con.Parent, con.Child); con.Child.MultipleParentFlag--; connections.Remove(new AtlasFeatureTuple(con.Parent, con.Child)); }
public void AddConnection(AtlasConnection con) { ConnectionNodesCheck(con.Parent, con.Child); con.Child.MultipleParentFlag++; connections.Add(new AtlasFeatureTuple(con.Parent, con.Child), con); }
public int CompareTo(object obj) { AtlasConnection con = (AtlasConnection)obj; if (this.parent.Equals(con.parent) && this.child.Equals(con.child)) { return(0); } return(-1); }