日本語
@eightkk/vue-weave / core / scheduleToGraph
Function: scheduleToGraph()
scheduleToGraph(
result,dependencies,options?):ScheduleGraph
Defined in: src/core/pert.ts:68
Build a PERT (activity-on-node) network diagram for NetworkGraph from a scheduleTasks result: one node per task, in result order, whose detail shows its early start, early finish and total float, and one edge per dependency with the dependency's ID. Critical tasks get criticalTone and are listed in criticalNodeIds; the result's criticalDependencyIds are returned as criticalEdgeIds. Node and edge data carry the schedule values (ScheduleGraphNodeData, ScheduleGraphEdgeData). An edge label shows the type when it is not FS and a non-zero lag formatted by formatLag, such as SS +2 h or +2 h; an FS edge without lag has no label. A dependency that touches a task of the result's inactiveTaskIds is left out, so the plan's full dependency list can be passed. Throws an Error for a dependency whose ends are not tasks of the result, a dependency from a task to itself, or a repeated dependency ID, and a RangeError for a lag that is not a finite number.
Parameters
result
dependencies
readonly TimelineDependency[]
options?
ScheduleGraphOptions = {}