private void addItem(ArrayList items, IGraphPart obj) { if ((obj != null) && !items.Contains(obj)) { items.Add(obj); } }
private void addItem(ArrayList items, IGraphPart obj) { if ((obj != null) && !items.Contains(obj)) { items.Add(obj); } }
public GraphProperties AddEdge(string startNode, string endNode) { selectedEntity = new EdgePart(Tuple.Create(startNode, endNode)); propeties.Add(selectedEntity, null); return(this); }
public GraphProperties AddNode(string nodeName) { selectedEntity = new NodePart(nodeName); propeties.Add(selectedEntity, null); return(this); }