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

Feature request: support some GraphViz features #13

Open
DavidBJaffe opened this issue Dec 10, 2022 · 3 comments
Open

Feature request: support some GraphViz features #13

DavidBJaffe opened this issue Dec 10, 2022 · 3 comments

Comments

@DavidBJaffe
Copy link

Hi -- this crate is really cool!!

I tested an example

digraph G {
node [width=0.13,height=0.13,fontsize=10,shape=point];
edge [fontsize=18,penwidth=1.3,arrowsize=1.3,fontname=Arial];
rankdir=LR;
labeljust=l;
margin=0;
15 -> 10 [minlen=2,color=red,label="0 (len=173,supp=807)"];
5 -> 15 [minlen=2,color=red,label="1 (len=430,supp=1567)"];
10 -> 7 [minlen=1,color=black,label="2 (len=26,supp=541)"];
7 -> 10 [minlen=1,color=black,label="3 (len=30,supp=951)"];
0 -> 7 [minlen=2,color=red,label="4 (len=618,supp=3220)"];
14 -> 13 [minlen=2,color=red,label="5 (len=632,supp=269)"];
11 -> 15 [minlen=1,color=black,label="6 (len=43,supp=40)"];
}

and got this output

image

as compared to what running dot yields

image

It would be awesome to get closer to the dot output.

Thank you very much!!

@nadavrot
Copy link
Owner

There are a few things that layout can do better. First, it does not support he shape 'point'. Second, the edge crosses one of the labels. Third, I agree that it would be better to round some of the edges (the support for that is limited).

@nadavrot
Copy link
Owner

@DavidBJaffe were there charts that the program rendered well?

@DavidBJaffe
Copy link
Author

Well I have a lot of graphs that look kind of like the above one (and which are generated by another program). I think it's pretty good as is.

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