Our state of the art Gantt chart


Post by zhang »

I have a question to ask you.
I saw in gantt chart dependency that the dependency of two tasks is similar to this data format:

  [
  {
  	id: 1,
  	fromTask: 11,
  	toTask: 15
  }
  ]

It represents 11 for the source task and 15 for the target task. There is a dependency between them, which means that task 11 points to task 15.
However, we know that there are actually four possibilities for two tasks to have a dependency relationship.
Such as:
Start of source task Link Start of destination task
Start of source task End of destination task
End of source task Link Start of destination task
End of the source task End of the link destination task.
But if you have this data structure up here. It simply indicates that there is a dependency between tasks 11 and 15. And task 11 points to task 15.

It is difficult to indicate whether the beginning or end of the source task links the beginning or end of the destination task. Why is that?

Is it possible that the start node of task 11 links both the start and end nodes of task 15, or that the end node of task 11 links both the start and end nodes of task 15?
How does the code in this case show the dependency between the two tasks?


Post by alex.l »

All the best,
Alex


Post Reply