I'm trying to build a program that will draw graphs. Along with that i want ot add a functionality, having some intellegence to indentify the shape, slope and other attributes of the graph. My plan now to go ahead with this is to have another math's library which can communicate with the graphs library. I'm stuck with what kind of data structure to use for such an application. there are numerous professional applications available for this. So if someone has an idea how these applications have achieved it, then please guide me on the same.
Thanks in advance.