These functions return logical vectors the length of the ties in a network identifying which hold certain properties or positions in the network.
tie_is_triangular() marks ties that are part of triangles.
tie_is_cyclical() marks ties that are part of cycles.
tie_is_triplet() marks ties that are part of transitive triplets.
tie_is_simmelian() marks ties that are both in a triangle
and fully reciprocated.
tie_is_imbalanced() marks ties that are part of imbalanced triads.
tie_is_transitive() marks ties that complete transitive closure.
They are most useful in highlighting parts of the network that are cohesively connected.
tie_is_triangular(.data)
tie_is_transitive(.data)
tie_is_triplet(.data)
tie_is_cyclical(.data)
tie_is_simmelian(.data)
tie_is_imbalanced(.data)A network object of class stocnet, igraph, tbl_graph, network, or similar.
Internally any of these will be coerced to an efficient implementation.
For more information on possible coercions, see e.g. manynet::as_stocnet().
A tie_mark logical vector the length of the ties in the network,
giving either TRUE or FALSE for each tie depending on
whether the condition is matched.
For signed networks, each tie is read by its magnitude, and every tie keeps its place in the returned vector. These marks ask only whether a two-path exists, as a census does, so a tie counts however it is signed.
Other marks:
mark_core,
mark_degree,
mark_diff,
mark_dyads,
mark_nodes,
mark_select_node,
mark_select_tie,
mark_ties
Other tie:
mark_dyads,
mark_select_tie,
mark_ties,
measure_central_tie_between,
measure_central_tie_close,
measure_central_tie_degree,
measure_central_tie_eigen,
measure_diverse_tie,
member_community_link,
tie_by_width()
Other cohesion:
measure_breadth,
measure_cohesion,
measure_fragmentation,
motif_net,
motif_node
ison_monks |> to_layer("like") |>
mutate_ties(tri = tie_is_triangular())
#>
#> ── # Sampson's Monks ───────────────────────────────────────────────────────────
#> # A longitudinal, labelled, weighted, directed network of 18 nodes and 168 like
#> arcs over 3 waves
#> # Transformed by exclusion: layers other than 'like' (295 ties excluded)
#>
#> ── Nodes
#> # A tibble: 18 × 3
#> label groups left
#> <chr> <chr> <dbl>
#> 1 Romuald Interstitial 3
#> 2 Bonaventure Loyal 4
#> 3 Ambrose Loyal 4
#> 4 Berthold Loyal 4
#> 5 Peter Loyal 3
#> 6 Louis Loyal 4
#> # ℹ 12 more rows
#>
#> ── Ties
#> # A tibble: 168 × 5
#> from to weight time tri
#> <int> <int> <dbl> <dbl> <tie_mark>
#> 1 1 2 1 2 TRUE
#> 2 1 2 1 3 TRUE
#> 3 1 3 1 3 TRUE
#> 4 1 5 3 1 TRUE
#> 5 1 5 3 2 TRUE
#> 6 1 5 3 3 TRUE
#> # ℹ 162 more rows
#>
ison_adolescents |> to_directed() |>
mutate_ties(trans = tie_is_transitive())
#>
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, directed network of 8 adolescents and 10 friendship arcs
#>
#> ── Nodes
#> # A tibble: 8 × 1
#> label
#> <chr>
#> 1 Betty
#> 2 Sue
#> 3 Alice
#> 4 Jane
#> 5 Dale
#> 6 Pam
#> # ℹ 2 more rows
#>
#> ── Ties
#> # A tibble: 10 × 3
#> from to trans
#> <int> <int> <tie_mark>
#> 1 2 1 FALSE
#> 2 3 2 FALSE
#> 3 4 3 TRUE
#> 4 2 5 FALSE
#> 5 5 3 FALSE
#> 6 4 5 FALSE
#> # ℹ 4 more rows
#>
ison_adolescents |> to_directed() |>
mutate_ties(trip = tie_is_triplet())
#>
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, directed network of 8 adolescents and 10 friendship arcs
#>
#> ── Nodes
#> # A tibble: 8 × 1
#> label
#> <chr>
#> 1 Betty
#> 2 Sue
#> 3 Alice
#> 4 Jane
#> 5 Dale
#> 6 Pam
#> # ℹ 2 more rows
#>
#> ── Ties
#> # A tibble: 10 × 3
#> from to trip
#> <int> <int> <tie_mark>
#> 1 1 2 FALSE
#> 2 3 2 TRUE
#> 3 3 4 FALSE
#> 4 2 5 FALSE
#> 5 5 3 FALSE
#> 6 4 5 FALSE
#> # ℹ 4 more rows
#>
ison_adolescents |> to_directed() |>
mutate_ties(cyc = tie_is_cyclical())
#>
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, directed network of 8 adolescents and 10 friendship arcs
#>
#> ── Nodes
#> # A tibble: 8 × 1
#> label
#> <chr>
#> 1 Betty
#> 2 Sue
#> 3 Alice
#> 4 Jane
#> 5 Dale
#> 6 Pam
#> # ℹ 2 more rows
#>
#> ── Ties
#> # A tibble: 10 × 3
#> from to cyc
#> <int> <int> <tie_mark>
#> 1 2 1 FALSE
#> 2 3 2 FALSE
#> 3 3 4 TRUE
#> 4 5 2 FALSE
#> 5 5 3 TRUE
#> 6 4 5 TRUE
#> # ℹ 4 more rows
#>
ison_monks |> to_layer("like") |>
mutate_ties(simmel = tie_is_simmelian())
#>
#> ── # Sampson's Monks ───────────────────────────────────────────────────────────
#> # A longitudinal, labelled, weighted, directed network of 18 nodes and 168 like
#> arcs over 3 waves
#> # Transformed by exclusion: layers other than 'like' (295 ties excluded)
#>
#> ── Nodes
#> # A tibble: 18 × 3
#> label groups left
#> <chr> <chr> <dbl>
#> 1 Romuald Interstitial 3
#> 2 Bonaventure Loyal 4
#> 3 Ambrose Loyal 4
#> 4 Berthold Loyal 4
#> 5 Peter Loyal 3
#> 6 Louis Loyal 4
#> # ℹ 12 more rows
#>
#> ── Ties
#> # A tibble: 168 × 5
#> from to weight time simmel
#> <int> <int> <dbl> <dbl> <tie_mark>
#> 1 1 2 1 2 FALSE
#> 2 1 2 1 3 FALSE
#> 3 1 3 1 3 FALSE
#> 4 1 5 3 1 FALSE
#> 5 1 5 3 2 FALSE
#> 6 1 5 3 3 FALSE
#> # ℹ 162 more rows
#>
fict_marvel |> to_layer("relationship") |> tie_is_imbalanced()
#> `Abomination-Abomination` `Abomination-Beast` `Abomination-Colossus`
#> 1 TRUE FALSE FALSE
#> # ... and 555 more values from this nodeset. Use `print_all(...)` to print all values.