Thread: graphs

  1. #1
    Registered User
    Join Date
    Feb 2013
    Location
    Buea Cameroon
    Posts
    64

    graphs

    Plese who knows how a graph can be implemented in the form of a c program?

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    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

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Graphs
    By Cpro in forum C++ Programming
    Replies: 2
    Last Post: 03-30-2008, 09:22 PM
  2. Graphs
    By JCartaxo in forum C++ Programming
    Replies: 4
    Last Post: 06-29-2007, 10:50 PM
  3. How to use C++ graphs?
    By eur0dad in forum C++ Programming
    Replies: 4
    Last Post: 10-14-2006, 11:37 AM
  4. Graphs and the STL
    By smitsky in forum C++ Programming
    Replies: 1
    Last Post: 12-04-2004, 06:32 PM
  5. Graphs
    By Shakespeare in forum C++ Programming
    Replies: 1
    Last Post: 02-13-2002, 04:13 PM