During aggregation of meta-path based similarity, extract similarity scores from pairwise aggregations.

extract_sim(x)

Arguments

x

A data.table containing the output of a get_similarity()$Similarity call.

verbose

Should aggregation method be printed to the console?

Value

A data.table with multiple columns elements:

Origin

The ID of the origin node.

Destination

The ID of the destination node.

Metric

The name of the similarity metric used (e.g., "PathSim").

Method

The name of the aggregation method used.

Similarity

The pairwise meta-path based similarity score.

See also

get_similarity() for pairwise meta-path based similarity calculation.