it's a bit algorithmic, and I'm not sure if it matches SO properly, let me know if it doesn't.
I want to implement some distance or similarity function between two marked asterisks. For example, I might have the following graphs view:
A = [3 -1 0; 4 1 0; 2 0 1; 2 0 -1]
and
B = [3 -0.8 1 4 1.4 0.4; 2 0.1 1.9]
My idea (which is actually based mainly on the article I'm reading) is to do some kind of propagation of faith: let's say that A is an observed graph - each row is an adjacent center node, the first column is a label, the second column is the position of x, and the third is the position of y (the positions belong to the central node), B is the graph in the database, and I want to see how close or similar they are.
In the article, they calculate the probability that the observed graph A is given as the product of the probabilities for all nodes. How would you effectively implement this in Matlab?
I would be grateful for any thought or inspiration, I am not looking for a code to solve it, I just want to find out from you masters how you would approach this problem.
Thanks,
J
source share