//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; } }
//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; }
//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; }
//add new edge to the edge map public void insertEdge(queryEdge e) { this.edges.Add(e); this.edgewalked.Add(false); }
public void addEdge(queryEdge edge) { this.edges.Add(edge); }