-
Notifications
You must be signed in to change notification settings - Fork 1
GraphCreator
Kfir Goldfarb edited this page Jan 12, 2021
·
2 revisions
This class is used like a static class the generate random graph and positions of nodes. In this class we have two functions:
-
create_graph(n, e, seed)
- this function get three integers: n - the number of nodes in the new graph, e - the number of edges in the new graph, seed - the seed number of randomly class to generate float number by the seed number, this function will return a new randomly DiGraph (directed weighted graph) -
get_position(seed)
- this function will return a tuple of randomly coordinates (x, y, z) by the seed number