Counts, for each node v, the two-paths i -> v -> j with i != j and
no tie i -> j (v brokers between them), by the roles of Gould and
Fernandez (1989), given each node's group: coord (coordinator: i, v
and j in one group), itin (itinerant: i and j in one group, v in
another), repr (representative: v in i's group, j outside), gate
(gatekeeper: v in j's group, i outside) and liais (liaison: three
groups). Undirected, each tie runs both ways, so each unordered pair of
neighbours counts twice and repr equals gate.
Weights are not taken. Graph rules as in ntdeg(). Raw counts only:
the expected counts and z-scores of Gould and Fernandez are not given.
Arguments
- from, to
Labels of the two ends of each edge: vectors of the same length (zero when
nodesgives every node) with no missing values.- grp
The group of each node: labels, named by node or one per node in node order, as
membinntmod().- nodes
NULL, or every node's label once: the node order of the results and the way to include isolated nodes.- dir
TRUEfor a directed graph (fromsends a tie toto).
References
Gould, R. V. and Fernandez, R. M. (1989). Structures of mediation: a formal approach to brokerage in transaction networks. Sociological Methodology, 19, 89-126. doi:10.2307/270949