-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] new shrinking #23
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,43 @@ | |||
using UnitDiskMapping, Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to add unit tests for new functions
@@ -386,6 +386,10 @@ function map_graph(mode, g::SimpleGraph; vertex_order=Greedy(), ruleset=default_ | |||
return MappingResult(ug, vcat(tape, tape2) , mis_overhead0 + mis_overhead1 + mis_overhead2) | |||
end | |||
|
|||
function apply_simplifiers_unweighted(ug::UGrid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted an estimate of overhead scaling, can delete/modify function
halfx = (x_max - x_min)/2 + x_min | ||
halfy = (y_max - y_min)/2 + y_min | ||
|
||
# move boundary vertices such that we can shrink graph from four quadrants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good! Now it is much easier to read. If possible, you should try to lessen the number of branches - otherwise you need to write tests for every branch to ensure the test coverage is good.
No description provided.