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

import fails to display a correct graph #34

Open
oupala opened this issue Nov 14, 2024 · 0 comments
Open

import fails to display a correct graph #34

oupala opened this issue Nov 14, 2024 · 0 comments

Comments

@oupala
Copy link

oupala commented Nov 14, 2024

When I dot import the following dotfile, the file is imported but all nodes are over each other. Why does this graph does not display correctly even if I enable force?

digraph {
    node [label=another,labelSize=12,labelPosition=LabelTop,labelColor="#ffffffff",labelIsVisible=true,position="0 0",velocity="0 0",manyBodyStrength=-100,gravityCenter="300 200",gravityStrengthX=0.05,gravityStrengthY=0.05,fixed=false,color="#56c785ff",radius=8,borderColor="#56c785ff",borderWidth=0,opacity=1,inBags="[]"]
    edge [label=youhou,labelSize=12,labelColor="#dcdcdcff",labelIsVisible=true,distance=50,strength=0.7,thickness=3,color="#c739f11225",opacity=1]

    "1"[label="this is a label",labelSize=12,labelPosition=LabelTop,labelColor="#ffffffff",labelIsVisible=true,position="290.92955218613895 173.5050804928229",velocity="0.0007100643291223718 -0.00018850646376560655",manyBodyStrength=-100,gravityCenter="300 200",gravityStrengthX=0.05,gravityStrengthY=0.05,fixed=false,color="#c739f11225",radius=8,borderColor="#c739f11225",borderWidth=0,opacity=1,inBags="[2]"]
    "2"[label=another,labelSize=12,labelPosition=LabelTop,labelColor="#ffffffff",labelIsVisible=true,position="308.6885490561512 225.19306853745385",velocity="-0.0006347858947882027 0.0002732706863300056",manyBodyStrength=-100,gravityCenter="300 200",gravityStrengthX=0.05,gravityStrengthY=0.05,fixed=false,color="#56c785ff",radius=8,borderColor="#56c785ff",borderWidth=0,opacity=1,inBags="[2]"]
    "3"[label=another,labelSize=12,labelPosition=LabelTop,labelColor="#ffffffff",labelIsVisible=true,position="245.21153926807796 200.05832387902566",velocity="-0.000039569480393650613 -0.0014904019046544184",manyBodyStrength=-100,gravityCenter="300 200",gravityStrengthX=0.05,gravityStrengthY=0.05,fixed=false,color="#56c785ff",radius=8,borderColor="#56c785ff",borderWidth=0,opacity=1,inBags="[]"]
    "4"[label=another,labelSize=12,labelPosition=LabelTop,labelColor="#ffffffff",labelIsVisible=true,position="355.43398943903384 200.72204237929031",velocity="-0.0000654231664085913 0.001343827964491885",manyBodyStrength=-100,gravityCenter="300 200",gravityStrengthX=0.05,gravityStrengthY=0.05,fixed=false,color="#56c785ff",radius=8,borderColor="#56c785ff",borderWidth=0,opacity=1,inBags="[]"]

    "2" -> "4"[label=youhou,labelSize=12,labelColor="#dcdcdcff",labelIsVisible=true,distance=50,strength=0.7,thickness=3,color="#c739f11225",opacity=1]
    "1" -> "3"[label=youhou,labelSize=12,labelColor="#dcdcdcff",labelIsVisible=true,distance=50,strength=0.7,thickness=3,color="#c739f11225",opacity=1]
    "1" -> "2"[label=youhou,labelSize=12,labelColor="#dcdcdcff",labelIsVisible=true,distance=50,strength=0.7,thickness=3,color="#ff8c1aff",opacity=1]

    graph [bagId="2",label="les bleus",color="#2a7b9aff",hasConvexHull=true]
}

I tried to remove the position attribute so that kite can place each node at a random place.

It seems that the import fail when a node has no position, or if 2 nodes have the same position.

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

1 participant