Hi, I am Madhav Wagle. I am final year student of computer science and am 
interested in the 
Diameter, radius, eccentricities, and distances problem for gsoc 2020

I read the paper *[d1]* and implemented it in sage. The function is working 
correctly and the answer it gives matches the answers produced by the code 
the authors of [d1] provided on several random sparse graphs.

For example, for the below di-graph

the algorithm outputs
%time D.diameter(algorithm='aik') #'aik' is the name of the new algo 
(initials of the author's lastnames)
CPU times: user 270 µs, sys: 19 µs, total: 289 µs
Wall time: 302 µs
9



I have some doubts about my implementation though:


1)The above algorithm only works well for directed sparse graphs which 
*aren't* strongly connected, Is it fine to modify important and central 
functions like 
*simple_BFS()*
just to accomodate the needs of this new algorithm?

In my implementation I have implemented all the BFS's as a part of the main 
algorithm function itself ( instead of funtion calls ), is that ok since it 
dosen't affect code readability negatively
*.*


*[d1] Takuya Akiba, Yoichi Iwata, Yuki Kawata: An Exact Algorithm for 
Diameters of Large Real Directed Graphs. SEA 2015: 56-67 
https://doi.org/10.1007/978-3-319-20086-6_5 
<https://doi.org/10.1007/978-3-319-20086-6_5>*

-- 
You received this message because you are subscribed to the Google Groups 
"sage-gsoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-gsoc/486b49fa-ed3e-43c4-9750-5a78da1d68f1%40googlegroups.com.

Reply via email to