GMatch4py
GMatch4py copied to clipboard
Use of GMatch4py
Hi, Thank you for GMatch4py which seems to works in my computer. My question is the following: in my graph, there 3 attributes, 2 on nodes and one a edges. If an attribute is a float, is it considered as a weight ? For example, if on the edges I have the distances as attributes, should I transform this attribute to give the more important weights to the shortest distances ?
Hi @pkrezel,
To be considered as a weight rename your edge/node attribute to "weight". If my memory is correct, it should by default if you build your weighted graph from NetworkX.
Bests, @Jacobe2169
Hi @Jacobe2169, So if a node (or an edge) has an attribute "weight" with a value near 1, it is a more important than one with a value near O, and GMatch4py takes that into account.