convert the ruby ApiGraphs to use IPA labels

This commit is contained in:
Erik Krogh Kristensen
2022-02-10 17:46:46 +01:00
parent efed21b99a
commit 9739929795
2 changed files with 133 additions and 50 deletions

View File

@@ -59,9 +59,8 @@ string getAPath(API::Node node, int length) {
length = 0 and
result = ""
or
exists(API::Node pred, string lbl, string predpath |
exists(API::Node pred, API::Label::ApiLabel lbl, string predpath |
pred.getASuccessor(lbl) = node and
lbl != "" and
predpath = getAPath(pred, length - 1) and
exists(string dot | if length = 1 then dot = "" else dot = "." |
result = predpath + dot + lbl and