dominikbraun / graph

A library for creating generic graph data structures and modifying, analyzing, and visualizing them.
https://graph.dominikbraun.io
Apache License 2.0
1.8k stars 94 forks source link

Change `New` signature to accept `...func(*Properties)` #67

Open dominikbraun opened 1 year ago

dominikbraun commented 1 year ago

This is a v1.0 feature. As long as graph is in version 0, it must not be implemented.

To enable #66, the function signature of New has to look as follows:

func New[K comparable, T any](hash Hash[K, T], options ...func(*Properties)) Graph[K, T]