fujaba / org.fujaba.graphengine

This project's aim is to build a graph engine, that is able to build and compare graphs - and to match patterns and apply actions on the graph, to effectively use it as a graph-transformation framework.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

The Family to Persons Case #35

Open hoechp opened 7 years ago

hoechp commented 7 years ago

The Family to Persons Case

Resources:

hoechp commented 7 years ago

This one looks quite easy to solve, I think - but covering different cases and configurations will take some time. As far as I understand, this is just a matter of handling changes in the models and converting data from one model to another with a lot of data being lost - I'd think a lot of this would be possible by using GTR.

hoechp commented 7 years ago

@eicke123: I just added a feature, where you can also match for any edge label:

// example:
p.addPatternEdge("-", (String)null, k); // note the '(String)null' as edge-label xD
// that way it will match any edge label

just get the updated PatternEngine.java from the ttc-state-branch, if you want to use it.

edit: It's not that syntax anymore. Now it's:

p.addPatternEdge("-", "#{pk}", k);