Plese who knows how a graph can be implemented in the form of a c program?
Plese who knows how a graph can be implemented in the form of a c program?
With a matrix or a list! Both have pros and cons of course. Google it for more
Code - functions and small libraries I use
It’s 2014 and I still use printf() for debugging.
"Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson
For graphs as in plotting for scientific purposes, there are libraries which make this easier
There is Gnuplot which can be called from C.
gnuplot documentation
Another one which looks interesting is MathGL - also with a C API
MathGL 2.0