Skip to main content

Looking for a graph layout framework for iOS



For an iOS application I'm making I need to show groups of elements grouped together according to their type, and different groups of types separated from each other in a nicely done layout.





I thought of using an undirected graph, with the grouped nodes all pointing to each other in a sort of circular reference, and then each group as another "meta-graph" with their nodes point at each other in a circular reference as well, hoping that together with a good graph layout framework this could be displayed nicely.





Unfortunately, the only framework I keep hearing of is graphviz , but that doesn't seem to have an available port for iOS.





So my question is either:





  1. Other ideas for how to implement what I need?



  2. A good implementation of graph layout for the iOS?



  3. An available port of graphviz for the iOS?







Update : Please note, I am not looking for graph plotting frameworks, which are the frameworks used to draw graphs and charts (such as pie charts etc). I am looking for a layout framework which determines the optimal location for arbitrary nodes in an abstract graph...





Thanks!


Comments

  1. According to a post on the graphviz development mailing list,
    Glen Low of pixelglow has already managed to port graphviz and uses it in Instaviz.

    He also has some hints on the configure script.

    ReplyDelete
  2. Below are some libraries which might help you:

    1) http://code.google.com/p/core-plot/

    2) http://code.google.com/p/s7graphview/

    3) https://github.com/duivesteyn-net/deSimpleChart

    4) http://www.rgraph.net/ (Will work on UIWebView only)

    5) http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/ (a blog where demo is given to create a graph)

    ReplyDelete
  3. graphviz is C source and has been ported to OSX/Xcode already. I would try to build a library in Xcode from source -- not a dylib (because that's not allowed on iOS devices), but a .a library. I bet the code is pretty close to portable to iOS already if not fully so.

    ReplyDelete
  4. How about using Google Chart in a webview:

    http://code.google.com/apis/chart/

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?

CCNA 1 Final Exam 2011 latest (hot hot hot)

  Hi! I have been posted content of ccna1 final exam (latest and only question.) I will post the answer and insert image on sunday. If you care, please subscribe your email an become a first person have full test content. Subcribe now  Some question  have not content because this question have images content. So that can you wait for me? SUNDAY 1. A user sees the command prompt: Router(config-if)# . What task can be performed at this mode? Reload the device. Perform basic tests. Configure individual interfaces. Configure individual terminal lines. 2. Refer to the exhibit. Host A attempts to establish a TCP/IP session with host C. During this attempt, a frame was captured with the source MAC address 0050.7320.D632 and the destination MAC address 0030.8517.44C4. The packet inside the captured frame has an IP source address 192.168.7.5, and the destination IP address is 192.168.219.24. At which point in the network was this packet captured? leaving host A leaving ATL leaving...