I've been searching this all over the internet for about two or three consecutive days, but no luck so far.
I know that there are lots of libraries and implementation for subgraph isomorphism in the wild, but they all work for unweighted graphs. For instance, two of the most prevalent algorithms are VF2 and Uleman's algorithm. Here, my question is: Are there any methods that given a graph (G) and a query graph (g), can one find whether g is a subgraph (and isomorphic) to G or not? (Please note that the following is the edge list representation of the graphs.)
G
1 2 c
1 3 d
1 4 c
2 3 a
...
g
1 3 d
2 3 a
In this case, g is a subgraph and is isomorphic to G, but if we have something like this:
g
1 3 t
2 3 a
Now g is no longer a subgraph of G and is not isomorphic.
UPDATE: Both graphs are undirected.