GMatch4py icon indicating copy to clipboard operation
GMatch4py copied to clipboard

Use of GMatch4py

Open pkrezel opened this issue 4 years ago • 2 comments

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 ?

pkrezel avatar Nov 19 '20 18:11 pkrezel

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

jacquesfize avatar Nov 20 '20 09:11 jacquesfize

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.

pkrezel avatar Nov 20 '20 10:11 pkrezel