public bool Equals(DataGraphEdge <Type> other) { return(other != null && Source == other.Source && Link == other.Link && Target == other.Target); }
public void AddEdge(string source, string link, string target) { if (source == null || target == null || link == null) { return; } DataGraphEdge <Type> edge = new DataGraphEdge <Type>(source, link, target); outgoing.Add(source, edge); incoming.Add(target, edge); }