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

Refactor: Make Connectd a directional graph #19

Merged
1 commit merged into from
Mar 9, 2020
Merged

Conversation

ghost
Copy link

@ghost ghost commented Mar 7, 2020

Part III of #13.

Note: I may go back to tracking adjacency lists per vertex, but that won't change the interface.

@ghost ghost self-assigned this Mar 7, 2020
connections : [EntryId];
invitations : [EntryId];
};
public type Vertex = Nat32;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be PrincipalId once it's in the IDL.

@ghost ghost marked this pull request as ready for review March 7, 2020 00:17
@ghost ghost self-requested a review as a code owner March 7, 2020 00:17
@ghost ghost requested a review from hansl March 7, 2020 00:18
};

public func getAdjacent(vertex : Vertex) : [Vertex] {
var adjacencyList : [Vertex] = [];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine for now. Is there some expectation for the size of the graph?

@ghost ghost merged commit aea69ba into master Mar 9, 2020
@ghost ghost deleted the sj/connectd-digraph branch March 9, 2020 20:49
This pull request was closed.
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.

1 participant