Closed yonkeltron closed 7 years ago
Can you gist up the result of inspect Graph.edges/1
? I can reconstruct the graph from that. Looks like my test graphs missed an edge case, sorry about that!
Unfortunately the inspect approach didn't work so well. However, encoding it as JSON worked great!
https://gist.github.com/yonkeltron/e48c10985cfc1933b94e45b7dccfe655
Yeah I forgot to mention that you can do inspect graph, structs: false
to dump the raw graph (or any struct for that matter!). I'm flying today, but I'll take a look as soon as I can!
Found the problem - I forgot to account for self-referential edges. I've pushed the fix to master - looks good on my end though!
Loops, you mean?
On Mon, Jul 24, 2017, 11:18 AM Paul Schoenfelder notifications@github.com wrote:
Found the problem - I forgot to account for self-referential edges. I've pushed the fix to master - looks good on my end though!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bitwalker/libgraph/issues/3#issuecomment-317456996, or mute the thread https://github.com/notifications/unsubscribe-auth/AADoO3zE577EnRtFjnNKu0exuzb4wm3Uks5sRLXHgaJpZM4OgkaC .
-- +Jonathan
Yeah, specifically loops from a vertex back to itself.
Will this fix go out in a dot release?
Yep, I'll get one published today. I wanted to get some improvements into the initial clique detection code to try and optimize it (it's pretty slow on large graphs, which is expected, but I think there may be ways to do better than the current perf profile), but I can release what is there now and do another point release with those improvements.
Just pushed 0.11.0 :)
Encountered this error (appears to be from ETS) when processing a smallish graph.
Using
Graph.info
tells me that it looks like this:%{num_edges: 201, num_vertices: 101, size_in_bytes: 69504, type: :directed}
while the printer representation gives me#Graph<type: directed, num_vertices: 101, num_edges: 201>
. Neither of these enable me to send you the graph I'm working with. Any tips on how to serialize the graph for transmission to you?Happy to provide more info since everything's bogus and simulated anyhow!
Thanks, +Jonathan