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

GraphFactory class? #119

Closed
jtatria opened this issue Feb 12, 2015 · 1 comment
Closed

GraphFactory class? #119

jtatria opened this issue Feb 12, 2015 · 1 comment

Comments

@jtatria
Copy link

jtatria commented Feb 12, 2015

Hello. Just started playing with Jgrahpt, and inmediately wandered if it owuld be possible to include a GraphFactory class/interface that takes a number of parameters (like allow multiple, allow loops, etc) and gives you back the corresponding implementing instance of a graph.

Is there some reason why this would not be advisable/some caveats against it?

I already have a very navie implementation locally, but I was wondering if I'm missing some critical aspect that has prevented inclusion of such a feature thus far...

@jkinable
Copy link
Collaborator

Various classes which automatically generate graphs are now available. Have a look at the org.jgrapht.generate package. Creating a factory class based on these generators should be relatively straightforward. Feel free to ask if you have any additional questions/problems.

Given the age of this question (almost a year old), I'll for now close this question.

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