public void Add(Person source, Person dest, int weight) { Matris[source.Value, dest.Value] = weight; Matris[dest.Value, source.Value] = weight; VerticleAdd(source); VerticleAdd(dest); SocialEdge edge = new SocialEdge(source, dest, weight); Edges.Add(edge); }
public int CompareTo(SocialEdge compareEdge) { return(this.Weight - compareEdge.Weight); }