This works only for weekly graphs