textnets.network.textual_spanning¶
- textnets.network.textual_spanning(m: ndarray, alpha: float = 1.0) ndarray [source]¶
Calculate textual spanning of documents in a similarity matrix.
- Parameters:
m (array) – Document similarity matrix.
alpha (float, optional) – Tuning parameter to change relevance of edge weights vs. document counts in calculating the spanning score (default: 1.0).
- Returns:
Each node’s textual spanning measure.
- Return type:
Notes
The textual spanning measure is not effective on disconnected graphs.
References