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

feat: add Order and Size methods to the graph #76

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

Tochemey
Copy link
Contributor

closes #74

@Tochemey
Copy link
Contributor Author

@hmdsefi I hope I have not missed anything this PR.

@@ -38,6 +43,7 @@ func (g *baseGraph[T]) addToEdgeMap(from, to *Vertex[T], options ...EdgeOptionFu
g.edges[from.label][to.label] = edge
}

atomic.AddUint32(&g.edgesCount, 1)
Copy link
Owner

Choose a reason for hiding this comment

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

The base graph implementation is not thread safe.

@hmdsefi hmdsefi merged commit ba840a1 into hmdsefi:master Aug 1, 2024
4 checks passed
@hmdsefi
Copy link
Owner

hmdsefi commented Aug 1, 2024

it is available in v0.4.2

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.

[Feat] Order and Size methods are missing out of the box
2 participants