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

Add random_geometric_graph #340

Closed
t-imamichi opened this issue May 28, 2021 · 2 comments
Closed

Add random_geometric_graph #340

t-imamichi opened this issue May 28, 2021 · 2 comments

Comments

@t-imamichi
Copy link
Member

t-imamichi commented May 28, 2021

What is the expected enhancement?

It would be great if retworkx has a compatible function with nx.random_geometric_graph
https://networkx.org/documentation/stable/reference/generated/networkx.generators.geometric.random_geometric_graph.html
This is not urgent. We can generate a random graph in a simpler way.

It is used for random instance generation for some graph problems.
https://github.com/Qiskit/qiskit-optimization/blob/186e63fe411d0d9b9999b3b538162635be45f550/qiskit_optimization/applications/tsp.py#L137
https://github.com/Qiskit/qiskit-optimization/blob/186e63fe411d0d9b9999b3b538162635be45f550/qiskit_optimization/applications/vehicle_routing.py#L243

Related to qiskit-community/qiskit-optimization#150

@georgios-ts
Copy link
Collaborator

We recently added this function #295 . It will be in the next release.

@t-imamichi
Copy link
Member Author

Thanks! I didn't notice it

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

No branches or pull requests

2 participants