Skip to content

Avyukt27/dgts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DGTS

The Digital Graph Transition System (DGTS) - a program which can simulate movement of load across a graph

To use the DGTS:

  • Enter the node indices and their starting loads into an inputs.csv file in the same directory as the executable
  • Enter the from,to connections into a connections.csv file in the same directory as the executable
  • Run the executable using dgts --threshold <THRESHOLD> --tranfer <TRANSFER>, where THRESHOLD is the maximum load held by a node and TRANSFER is the load transfered

Example inputs.csv

index load
0 5
1 3
2 2

Add as many rows as there are nodes

Example connections.csv

from to
0 1
1 2
2 0
1 0

Add as many connections, but make sure each connection has nodes which exist

Example usage

dgts --threshold 5 --transfer 2

Explaination: Each node can hold 5 load and transfers 2 load total to th adjacent nodes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages