Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Arrow type "32" unknown - ignoring with rankAdjustments #14

Open
hududed opened this issue Apr 8, 2022 · 1 comment
Open

Comments

@hududed
Copy link

hududed commented Apr 8, 2022

I made the following as test.json:

{
  "tables":{
      "label":{
        "*id":"1",
        "aid": "bla"
      },
      "order":{
        "*id": "12sd312asd34",
        "+b_aid": "bla",
        "+q_aid": "bla2"
      },
      "hole":{
        "*id": "sd9f8sd9fusdfuds98u8d8fu9ds8",
        "+first_aid": "bla",
        "+second_aid": "bla"
      },

      "pos":{
        "*id": "lplppasd1213124",
        "+b_aid": "bla3",
        "+q_aid": "bla2",
        "+p_id": "06991591-ef4a-48dc-8703-89c7cd43a8fb"
      },
      "on_1_event":{
        "*id": "asd2as4d1213124",
        "state": "OPEN",
        "+o_id": "12sd312asd34"
      },
      "on_2_event":{
        "*id": "asd2as4d1213124",
        "state": "OPEN",
        "+l_id": "lplppasd1213124"
      },
      "sub_1_event":{
        "*id": "1125dfa1",
        "+key20": "123ascas123as1d..",
        "event": "PENDING",
        "+o_id": "12sd312asd34"
      },
      "sub_2_event":{
        "*id": "1125dfa1",
        "+key20": "123ascas123as1d..",
        "event": "PENDING",
        "+l_id": "lplppasd1213124"
      }
      

  },
  "relations":[
      "hole:first_aid *--1 label:id",
      "hole:second_aid *--1 label:id",
      "pos:b_aid *--1 label:id",
      "pos:q_aid *--1 label:aid",
      "label:id 1--* hole:first_aid",
      "label:id 1--* hole:second_aid",
      "pos:p_id *--1 hole:id",
      "label:id 1--* order:b_aid",
      "label:id 1--* order:q_aid",
      "order:id 1--* on_1_event:o_id",
      "order:id 1--* sub_1_event:o_id",
      "pos:id 1--* on_2_event:l_id",
      "pos:id 1--* sub_2_event:l_id"
  ],
  "rankAdjustments":"{rank=min on_2_event pos sub_2_event}{rank=same label hole}{rank=max on_1_event order sub_1_event}",
  "label":""
}

and I got multiple errors Warning: Arrow type "32" unknown when running dot test.dot -Tpng -o test.png - then some outputs are missing the correct cardinalities. Please advise

@ehne
Copy link
Owner

ehne commented Aug 17, 2022

hi, it seems to not produce any warnings for me. my only guess is that it's something to do with the specific layout you're trying to force. The arrows always go from left to right, so trying to lay tables on top of each other messes that up. Which is probably why the cardinalities get confused. Removing rank adjustments fixes this.

Screen Shot 2022-08-18 at 7 16 43 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants