Skip to content

C++: traveled graphs, and region-splitting support - #206

Merged
yakra merged 18 commits into
TravelMapping:masterfrom
yakra:tmg2_cpp_redo
Apr 21, 2019
Merged

yakra merged 18 commits into
TravelMapping:masterfrom
yakra:tmg2_cpp_redo

Conversation

@yakra

@yakra yakra commented Apr 19, 2019

Copy link
Copy Markdown
Contributor

Traveled graphs:
This brings the C++ siteupdate state of development in line with yakra:tmg2_Python, as in #201.
Not yet implemented:

Region-splitting support:

yakra added 13 commits March 30, 2019 14:36
in preparation for "traveled" graph implementation
* Separate collection of "traveled" edges implemented.
* fmt_mask allows new collapsed/traveled edges to be constructed together or separately as needed.
* HighwayGraph.matching_vertices calculates & returns # of vertices for traveled graph, though this info is not used yet.
* Traveled graph partially implemented: for now, just a glorified collapsed graph with a few extra vertices & edges.
* Traveler numbers and hex codes are not yet implemented.
* Subgraphs are not yet implemented.
Due to using std::list::splice,
when compressing a vertex into both traveled & "normal" collapsed edges separately, the intermediate points were removed from edge2's list during collapsed edge construction, and thus no longer available to be spliced into the new traveled edge's list. This resulted in traveled edges with missing intermediate points.
plus a bugfix: added a mutex around writing to traveler_lists when reading .list files from disk
@yakra yakra changed the title traveled graphs, and region-splitting support C++: traveled graphs, and region-splitting support Apr 19, 2019
@yakra
yakra merged commit dc88874 into TravelMapping:master Apr 21, 2019
@yakra

yakra commented Apr 26, 2019 •

Copy link
Copy Markdown
Contributor Author

@FL0gnap, welcome to GitHub!
Click on the commits listed above to see the individual changes I made to my code. Click on Files changed to see the edits to all the files.

This rabbit hole goes real deep. And it's a wonderland down here.

@FL0gnap

FL0gnap commented Apr 26, 2019

Copy link
Copy Markdown

Thanks Yak! So glad to join you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants