graphs

This is a discussion on graphs within the C Programming forums, part of the General Programming Boards category; Plese who knows how a graph can be implemented in the form of a c program?...

  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,681
    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,112
    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, 05:32 PM
  5. Graphs
    By Shakespeare in forum C++ Programming
    Replies: 1
    Last Post: 02-13-2002, 03:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21