Add subgraph_hash in dot parser.#129
Conversation
|
Many thanks for this PR and #130. I'll have a look at it and I'll merge the two of them if possible. A quick question: have you checked that any |
|
Not yet. I forgot there are dot files inside these two folders. I can add a stanza in My PR currently is not so good, not only by (#130 Q2 Q3) but also my added structure for subgraph
I am also hoping I can remove |
It seems to take me nearly one year to answer this quick question 🎃. I am working on a WIP PR to test parsing those dot files with the current dot parser and my modified parser, then check the equality of the results. I added a dune alias I copied the current However, I don't figure out a good idea (ocamlgraph-way) to check the exactly equality of these two graphs in Now I just check they share the same number of vertices and edges. (The specific problem is I think some files just for testing during the PR discussion. When the issue is settled down, I can remove them. |
This PR adds a new entry function
parse_allto get subgraph information when parsing a dot file.In the old code,
clust_nodesis defined, and used, but not returned.It's replaced by a
graph_hashwhich records the nodes, attr, and parent using the parsing.The previous parsing functions are only changed to drop not-use part of
create_graph_and_clusters''s return values.I make an issue #130 for more discussion.