properties {manynet} | R Documentation |
Describing network properties
Description
These functions extract certain attributes from given network data:
-
network_nodes()
returns the total number of nodes (of any mode) in a network. -
network_ties()
returns the number of ties in a network. -
network_dims()
returns the dimensions of a network in a vector as long as the number of modes in the network. -
network_node_attributes()
returns a vector of nodal attributes in a network. -
network_tie_attributes()
returns a vector of tie attributes in a network.
These functions are also often used as helpers within other functions.
Usage
network_nodes(.data)
network_ties(.data)
network_dims(.data)
network_node_attributes(.data)
network_tie_attributes(.data)
Arguments
.data |
An object of a manynet-consistent class:
|
Value
network_*()
functions always relate to the overall graph or network,
usually returning a scalar.
network_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.
network_*_attributes()
returns a string vector with the names
of all node or tie attributes in the network.
See Also
Other mapping:
attributes()
,
autographr()
,
autographs()
,
autographt()
,
configuration_layouts
,
partition_layouts
Examples
network_nodes(ison_southern_women)
network_ties(ison_southern_women)
network_dims(ison_southern_women)
network_dims(to_mode1(ison_southern_women))
network_node_attributes(ison_lotr)
network_tie_attributes(ison_algebra)