Esempio n. 1
0
 //mark edge e as walked
 public void walk(queryEdge e)
 {
     for (int i = 0; i < this.edges.Count; i++)
     {
         if (this.edges[i].Equals(e))
             this.edgewalked[i] = true;
     }
 }
Esempio n. 2
0
 //check if e has been walked
 public bool walked(queryEdge e)
 {
     for (int i = 0; i < this.edges.Count; i++)
     {
         if (this.edges[i].Equals(e))
             return this.edgewalked[i];
     }
     return false;
 }
Esempio n. 3
0
 //add query edge qe to query point qp
 public void addQueryEdgeToQueryPoint(queryPoint qp, queryEdge qe)
 {
     for (int i = 0; i < this.qpointsList.Count; i++)
     {
         queryPoint p = this.qpointsList.ElementAt(i);
         if (custom_Equals(p, qp))
             this.qpointsList.ElementAt(i).addEdge(qe);
     }
     return;
 }
Esempio n. 4
0
 //add new edge to the edge map
 public void insertEdge(queryEdge e)
 {
     this.edges.Add(e);
     this.edgewalked.Add(false);
 }
Esempio n. 5
0
 public void addEdge(queryEdge edge)
 {
     this.edges.Add(edge);
 }