Skip to content
Discussion options

You must be logged in to vote

Yes, that's right. A 0-cell is a vertex/object, a 1-cell is an edge whose level is 1, a 2-cell is an edge whose level is 2, and so on.

The only subtlety is that each edge actually has two levels: the "actual" level is calculated as one more than the maximum of the source level and the target level, for instance, in the following:

quiver/src/ui.mjs

Line 7479 in 4fee690

super(ui.quiver, Math.max(source.level, target.level) + 1, label, label_colour);

This is used to sort edges by those they depend on, e.g. when exporting to LaTeX (so that objects are exported first, then edges between objects, then edges between edges between objects, and so on). The other is the "visual" l…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tjbcg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants