Skip to content
Create a graph and put power on some nodes
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
.gitignore
LICENSE
README.md
example.png

README.md

python-graph-powering

Testing python programming.

  • Create several Node class instances
    • Each node has:
      • an ID
      • a state (open / close). Closed means the power won't be transfered to children
      • a list of children Nodes
      • a "powered" information, false by default
  • Link some random nodes
  • Add power to random nodes and their children

Result is saved in a file

Possible evolutions:

  • Add multi-threading

Example with :

  • nodes_nbr = 900
    
  • max_link_nbr = 800
    
  • node_per_line = 30
    
  • power_unit_nbr = 10
    

Example

You can’t perform that action at this time.