Skip to content

GraphCreator

Kfir Goldfarb edited this page Jan 12, 2021 · 2 revisions

GraphCreator class:

This class is used like a static class the generate random graph and positions of nodes. In this class we have two functions:

Class methods:

  1. 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)
  2. get_position(seed) - this function will return a tuple of randomly coordinates (x, y, z) by the seed number
Clone this wiki locally