You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the still pending PR for NetworKit I decided to copy the code to modify it slightly. However, actually not many changes are necessary:
1.) I need to be able to pass a PRNG reference rather than a seed
2.) I need to be able to stop the generation prematurely (NetworKit stops algorithms on SIGINT)
The first one is easy: I could add a SpatialTree::generateEdges(std::mt19937_64&); overload.
Additionally I would like to provide std::vector<std::mt19946_64*> overloads to generateWeights and generatePositions.
For the second I would add a template <typename StopCallback> to the SpatialTree which would default top a "never-stop" predicate and hence should be removed by the compiler if it remains unused.
Would you accept such a PR? Then we could use the library directly as a git submodule.
The text was updated successfully, but these errors were encountered:
In the still pending PR for NetworKit I decided to copy the code to modify it slightly. However, actually not many changes are necessary:
1.) I need to be able to pass a PRNG reference rather than a seed
2.) I need to be able to stop the generation prematurely (NetworKit stops algorithms on SIGINT)
The first one is easy: I could add a
SpatialTree::generateEdges(std::mt19937_64&);
overload.Additionally I would like to provide
std::vector<std::mt19946_64*>
overloads togenerateWeights
andgeneratePositions
.For the second I would add a
template <typename StopCallback>
to the SpatialTree which would default top a "never-stop" predicate and hence should be removed by the compiler if it remains unused.Would you accept such a PR? Then we could use the library directly as a git submodule.
The text was updated successfully, but these errors were encountered: