Learn R Programming

criticalpath (version 0.2.1)

sch_critical_relations: Critical Relations

Description

Return a tibble with critical relations of a schedule in topological order.

Usage

sch_critical_relations(sch, order = "topological")

Arguments

sch

A schedule object.

order

Indicates the order of relations:

  • "topological": The relations tibble is in topological order.

  • "insert": The relations tibble is in insert order.

Value

A tibble with critical relations.

See Also

sch_relations(), sch_add_activities(), sch_has_any_relation(), sch_topoi_tf(), sch_gantt_matrix(), sch_activities(), sch_topoi_la(), sch_add_relations(), sch_topoi_sp(), sch_non_critical_activities(), sch_topoi_ad(), sch_nr_relations(), sch_non_critical_relations().

Examples

Run this code
# NOT RUN {
sch <- sch_new() %>%
  sch_title("Project 3: Old Carriage House Renovation") %>%
  sch_reference(
    "VANHOUCKE, Mario. Integrated project management and control:
  first comes the theory, then the practice. Gent: Springer, 2014, p. 11") %>%
  sch_add_activity( 1L, "a1" , 2L) %>%
  sch_add_activity( 2L, "a2" , 2L) %>%
  sch_add_activity( 3L, "a3" , 4L) %>%
  sch_add_activity( 4L, "a4" , 3L) %>%
  sch_add_activity( 5L, "a5" , 4L) %>%
  sch_add_activity( 6L, "a6" , 1L) %>%
  sch_add_activity( 7L, "a7" , 1L) %>%
  sch_add_activity( 8L, "a8" , 1L) %>%
  sch_add_activity( 9L, "a9" , 1L) %>%
  sch_add_activity(10L, "a10", 1L) %>%
  sch_add_activity(11L, "a11", 3L) %>%
  sch_add_activity(12L, "a12", 2L) %>%
  sch_add_activity(13L, "a13", 1L) %>%
  sch_add_activity(14L, "a14", 1L) %>%
  sch_add_activity(15L, "a15", 2L) %>%
  sch_add_activity(16L, "a16", 1L) %>%
  sch_add_activity(17L, "a17", 1L) %>%
  sch_add_relation(14L, 15L) %>%
  sch_add_relation( 9L, 10L) %>%
  sch_add_relation( 2L,  3L) %>%
  sch_add_relation( 8L, 10L) %>%
  sch_add_relation(10L, 13L) %>%
  sch_add_relation( 5L,  6L) %>%
  sch_add_relation(11L, 12L) %>%
  sch_add_relation(15L, 16L) %>%
  sch_add_relation( 6L,  8L) %>%
  sch_add_relation( 3L,  4L) %>%
  sch_add_relation(16L, 17L) %>%
  sch_add_relation( 6L,  7L) %>%
  sch_add_relation(10L, 11L) %>%
  sch_add_relation(13L, 14L) %>%
  sch_add_relation( 4L,  5L) %>%
  sch_add_relation( 7L, 10L) %>%
  sch_add_relation(12L, 15L) %>%
  sch_add_relation( 6L,  9L) %>%
  sch_add_relation( 1L,  2L) %>%
  sch_plan()
# In "topological" order.
sch_critical_relations(sch)
# In "insert" order.
sch_critical_relations(sch, order = "insert")

# }

Run the code above in your browser using DataLab