2
$\begingroup$

Is there any way to calculate similarity of graphs or the graph edit distance in Mathematica ?

$\endgroup$
4
$\begingroup$
g1 = RandomGraph[{30, 50}];
g2 = RandomGraph[{30, 45}];
EditDistance[EdgeList[g1], EdgeList[g2]]

(* 49 *)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.