centrality_influence
Computes weighted or unweighted influence centrality and stores the results as attributes on the graph.
Parameters
- g : SAS graph object
-
Specifies the input graph to assess.
- edge_weight : str or None, optional
-
Specifies the edge attribute that corresponds to the edge weight. The default is None, which means that unweighted influence centrality is computed.
- inplace : bool, optional
-
Specifies whether to add the centrality values as attributes to the input graph directly or to create a copy of the graph. The default is False.
- data : bool, optional
-
Specifies whether or not to retain attributes. When the value is True and the inplace parameter value is False (default values), the node and edge attributes of the graph are retained. This parameter has no effect when the inplace parameter is set to True.
Returns
- SAS graph object or None
-
Returns a graph that contains the first- and second-order influence centrality node attributes centr_influence1_* and centr_influence2_*. This graph has the solution_summary attribute, which contains information about the results of the algorithm.