measure_properties {manynet}R Documentation

Describing network properties

Description

These functions extract certain attributes from given network data:

These functions are also often used as helpers within other functions.

Usage

net_nodes(.data)

net_ties(.data)

net_dims(.data)

net_node_attributes(.data)

net_tie_attributes(.data)

Arguments

.data

An object of a manynet-consistent class:

  • matrix (adjacency or incidence) from {base} R

  • edgelist, a data frame from {base} R or tibble from {tibble}

  • igraph, from the {igraph} package

  • network, from the {network} package

  • tbl_graph, from the {tidygraph} package

Value

⁠net_*()⁠ functions always relate to the overall graph or network, usually returning a scalar. net_dims() returns an integer of the number of nodes in a one-mode network, or two integers representing the number of nodes in each nodeset in the case of a two-mode network. ⁠net_*_attributes()⁠ returns a string vector with the names of all node or tie attributes in the network.

See Also

Other measures: between_centrality, close_centrality, degree_centrality, eigenv_centrality, measure_attributes, measure_closure, measure_cohesion, measure_features, measure_heterogeneity, measure_hierarchy, measure_holes, measure_infection, measure_net_diffusion, measure_node_diffusion, measure_periods, member_diffusion

Examples

net_nodes(ison_southern_women)
net_ties(ison_southern_women)
net_dims(ison_southern_women)
net_dims(to_mode1(ison_southern_women))
  net_node_attributes(ison_lotr)
  net_tie_attributes(ison_algebra)

[Package manynet version 1.0.2 Index]