projected_graph_jaccard
Computes a Jaccard projected graph.
Parameters
- g : SAS graph object
-
Specifies the input graph to assess.
- nodes : list or iterable
-
Specifies the subset of nodes to project onto.
- neighbors : list or iterable, optional
-
Specifies the subset of nodes to project through. By default, this subset consists of all nodes in g other than those that are specified by the nodes parameter.
- directed_method : {‘converging’, ‘diverging’, ‘transitive’}, optional
-
Specifies a method to use for projecting directed graphs. By default, the ‘converging’ method is used.
- data : bool, optional
-
Specifies whether or not to retain attributes. The default is True, which means that the node attributes of the graph are retained.
Returns
- SAS graph object
-
Returns a graph representation of the node pairs with common neighbors among the neighbors subset of nodes. The strength of association in the calculated projection is represented by the ‘jaccard’ edge attribute.