-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Description
I think pyrgg is now an executable script that takes the graph specifications and outputs a file containing a random graph.
What if someone wants to generate a random graph in their own code and have a graph object?
My suggestion is to divide the current program into two parts.
- The functional core of Random Graph Generator in which graph specifications are passed to core functions and a Graph object is returned by functions.
- The executable wrapper of the functional core which is same as the current interface of
pyrgg, uses the functional core and stores graphs in the files.
Steps/Code to Reproduce
Maybe these steps:
- Extract core functions and separate them for functional core
- Design Graph data model and class
- Connect the executable part to the core part
Expected Behavior
- If someone needs the random graph generator as a library in which its functions return randomly generated graphs, they can use the functional core of
pyrgg. - If someone just needs to execute the code and have a random graph in a file, they can use the executable part.
sadrasabouri and sepandhaghighi
Metadata
Metadata
Assignees
Labels
No labels