sealed class for shortest path implementation

Topics: algorithm, graph
Aug 5, 2009 at 5:42 PM

Hi, thz again to have create a great graph tools. 

Here is my question, is there any reasons why the implementation of different shortest path algorith are in sealed class. It reduce the option of inherith from these class. In my case, i  just need to add some functionality to these algorith. Sealed class mean i need to rewrite the whole class with my added content. Or to modify the source code (what i don't wanna do since i want to support update of quickgraph).

have a nice day

Aug 6, 2009 at 9:33 AM

Why do you want to inherit from those classes? Shortest Path algorithms expose events that you can hook to without inheritance. Just wondering.

Aug 6, 2009 at 8:53 PM

hello, i need to modify some method and add some constructor to them, have a nice day

Aug 10, 2009 at 6:20 AM

that's what I don't understand. Which method/contructors are you missing?