Skip to content
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

lines field in unweighted mappings #45

Open
simonenotarnicola opened this issue Apr 17, 2023 · 4 comments
Open

lines field in unweighted mappings #45

simonenotarnicola opened this issue Apr 17, 2023 · 4 comments

Comments

@simonenotarnicola
Copy link

Let's suppose I define the peterson graph, then its unweighted mapping unweight_res (as in the example notebook). How should the field unweighted_res.lines be interpreted?
For example:
UnitDiskMapping.CopyLine 10: vslot → [1:1,1], hslot → [1,1:6]
10 is the label of the vertex in the original graph, but how should [1:1,1] and [1,1:6] be interpreted?

@GiggleLiu
Copy link
Collaborator

GiggleLiu commented Apr 18, 2023

The meaning of CopyLine is explained here:

A copy line is not a true line, it is two segments forming the "|-" shape. So

  • vslot → [1:1,1] means the vertical slot is in the first column, the segment spans rows 1 to 1.
  • hslot → [1,1:6] means the horizontal slot is in the first row, the segment spans columns 1 to 6.

@simonenotarnicola
Copy link
Author

thank you. so is there no way to connect the lines coordinates to the coordinates of the vertices in the mapped graph?

@GiggleLiu
Copy link
Collaborator

GiggleLiu commented Apr 24, 2023

thank you. so is there no way to connect the lines coordinates to the coordinates of the vertices in the mapped graph?

The line has been transformed by other gadgets in the mapped graph. The vertices in the mapped graph does not correspond to any line since they may have multiple sources.

@simonenotarnicola
Copy link
Author

there is no way to reverse the transformation via the mapping_history? what do the numbers in each element of the mapping history represent?

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

No branches or pull requests

2 participants