slrtbtfs / graphfind-rs

Library for Finding Patterns in graphs
Apache License 2.0
5 stars 0 forks source link

Print Graphs to .svg - [merged] #55

Closed slrtbtfs closed 1 year ago

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 17, 2022, 17:55

_Merges graphvis -> main

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 17, 2022, 17:55

requested review from @slrtbtfs

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 10:23

added 44 commits

Compare with previous version

slrtbtfs commented 1 year ago

please use raw string literals here, that avoids all the escaping

slrtbtfs commented 1 year ago

Can we document this dependency somewhere more visible (e.g. a central README) and maybe even fail the build if it isn't present (using build scripts).

slrtbtfs commented 1 year ago

is there a specific reason for not using block comments (/** */)?

slrtbtfs commented 1 year ago

was this file comitted intentionally or is it supposed to be generated by tests?

slrtbtfs commented 1 year ago

is there a reason whitespaces in thist string are problematic?

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:13

Commented on tests/test_print.rs line 16

changed this line in version 3 of the diff

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:13

Commented on tests/persons.svg line 1

changed this line in version 3 of the diff

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:13

Commented on tests/person_graph_types.rs line 94

changed this line in version 3 of the diff

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:13

added 1 commit

Compare with previous version

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:14

Commented on tests/test_print.rs line 16

Done.

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:14

Commented on src/print_backends/petgraph.rs line 32

Graphviz dependency noted in README.md.

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:18

Commented on src/print.rs line 3

They look awkward in VS Code, at least to me: Bildschirmfoto_vom_2022-11-18_15-55-01 I don't know why those bulletin points are added to each line. With ///-comments, it does look better to me: Bildschirmfoto_vom_2022-11-18_15-55-20

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:18

Commented on tests/persons.svg line 1

Generated by tests; removed.

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:19

Commented on tests/person_graph_types.rs line 94

I was removing whitespace for test_petgraph_print to make that test work. With raw literals, whitespaces aren't a problem anymore.

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 18, 2022, 16:20

added 1 commit

Compare with previous version

slrtbtfs commented 1 year ago

Ok, ig then we'll use the line comments.

Apparently this is an open rust-analyzer bug since 2019 https://github.com/rust-lang/rust-analyzer/issues/1759

slrtbtfs commented 1 year ago

approved this merge request

slrtbtfs commented 1 year ago

mentioned in commit 99408c14acd9b1e56c8edf37bab051b9dcf60a01

slrtbtfs commented 1 year ago

In GitLab by @bjthehun on Nov 22, 2022, 14:02

resolved all threads