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

new connectivity spec #62

Merged
merged 5 commits into from
Mar 29, 2024
Merged

new connectivity spec #62

merged 5 commits into from
Mar 29, 2024

Conversation

askhamwhat
Copy link
Member

this makes the change to the new connectivity specification and still allows for the old edge2verts format on construction.

New fields:

  • edgesendverts = 2 x nedge array, edgesendverts(1,i) is starting vertex for edge and (2,j) is ending vertex.
  • v2emat = sparse matrix, v2emat(i,j) is non-zero if edge i is connected to vertex j. it is 1 if edge i ends at vertex j, -1 if edge i starts at vertex j, and 2 if edge i starts and ends at vertex j. Note this is basically the same as edge2verts. This info is sometimes useful to have a fast method for finding info relevant to a specific vertex/set of vertices (see findregions/vertextract)

@askhamwhat askhamwhat requested a review from jghoskins March 29, 2024 03:09
@jghoskins jghoskins merged commit 8754eef into master Mar 29, 2024
1 check passed
@jghoskins jghoskins deleted the cgraph-startendverts branch March 29, 2024 04:13
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