Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions siteupdate/cplusplus/classes/GraphGeneration/HGVertex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,13 @@ HGVertex::HGVertex(Waypoint *wpt, const std::string *n, unsigned int numthreads)
first_waypoint = wpt;
if (!wpt->colocated)
{ if (!wpt->is_hidden) visibility = 2;
regions.insert(wpt->route->region);
systems.insert(wpt->route->system);
wpt->route->region->vertices.insert(this);
wpt->route->system->vertices.insert(this);
return;
}
for (Waypoint *w : *(wpt->colocated))
{ // will consider hidden iff all colocated waypoints are hidden
if (!w->is_hidden) visibility = 2;
regions.insert(w->route->region);
systems.insert(w->route->system);
w->route->region->vertices.insert(this);
w->route->system->vertices.insert(this);
}
Expand All @@ -61,6 +57,4 @@ HGVertex::~HGVertex()
while (incident_c_edges.size()) delete incident_c_edges.front();
delete[] s_vertex_num;
delete[] c_vertex_num;
regions.clear();
systems.clear();
}
2 changes: 0 additions & 2 deletions siteupdate/cplusplus/classes/GraphGeneration/HGVertex.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class HGVertex
const std::string *unique_name;
char visibility;
Waypoint *first_waypoint;
std::unordered_set<Region*> regions;
std::unordered_set<HighwaySystem*> systems;
std::list<HGEdge*> incident_s_edges; // simple
std::list<HGEdge*> incident_c_edges; // collapsed
std::list<HGEdge*> incident_t_edges; // traveled
Expand Down
6 changes: 0 additions & 6 deletions siteupdate/python-teresco/siteupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,16 +1696,12 @@ def __init__(self,wpt,unique_name,datacheckerrors,rg_vset_hash):
# note: if saving the first waypoint, no longer need
# lat & lng and can replace with methods
self.first_waypoint = wpt
self.regions = set()
self.systems = set()
self.incident_s_edges = [] # simple
self.incident_c_edges = [] # collapsed
self.incident_t_edges = [] # traveled
if wpt.colocated is None:
if not wpt.is_hidden:
self.visibility = 2
self.regions.add(wpt.route.region)
self.systems.add(wpt.route.system)
wpt.route.system.vertices.add(self)
if wpt.route.region not in rg_vset_hash:
rg_vset_hash[wpt.route.region] = set()
Expand All @@ -1717,8 +1713,6 @@ def __init__(self,wpt,unique_name,datacheckerrors,rg_vset_hash):
# will consider hidden iff all colocated waypoints are hidden
if not w.is_hidden:
self.visibility = 2
self.regions.add(w.route.region)
self.systems.add(w.route.system)
if w.route.region not in rg_vset_hash:
rg_vset_hash[w.route.region] = set()
rg_vset_hash[w.route.region].add(self)
Expand Down