Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
gen_time_graph.py
sample.gr
sample_t.gr
time_helper.py

README.md

Run Python Script

python gen_time_graph.py

Configurations

time_helper.py contains the configurations for generating temporal graph. Different parameters are described below:

* static_graph => Path to static graph file in gr format (9th DIMACS)
* temporal_graph => Path where the temporal graph is to be created
* temporal_edges => Maximum number of temporal edges corresponding to single static edge
* time_step => For every static edge, the loop goes from 0 to temporal_edges with step size equal to time_step
* spatial_partition => Number of sets into which the vertices are divided
* temporal_partition => Number of set into which the time instants are divided
* p => A number between 0-100. p = 100 sets the probability of a temporal edges to be added 
as 0 while p=0 sets the probability as 1. 
You can’t perform that action at this time.