Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to draw a graph using C#

How to draw a graph using C#

Scheduled Pinned Locked Moved C#
csharpgraphicsalgorithmsdata-structurestutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lune12
    wrote on last edited by
    #1

    hi, I would like to make a program that deal with algorithm on graphs. Which control should I use for drawing the graph - the nodes and edges? Thanks, Lune

    N J R 3 Replies Last reply
    0
    • L lune12

      hi, I would like to make a program that deal with algorithm on graphs. Which control should I use for drawing the graph - the nodes and edges? Thanks, Lune

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      You've been ridiculed already for asking this in the Lounge, but no one managed to mention how pointless the question is. Google will tell you and so will an article search here. Try c# graph as a subject. I'll leave the complex keyboard skilz and leet copying to you.


      Panic, Chaos, Destruction. My work here is done.

      1 Reply Last reply
      0
      • L lune12

        hi, I would like to make a program that deal with algorithm on graphs. Which control should I use for drawing the graph - the nodes and edges? Thanks, Lune

        J Offline
        J Offline
        J a a n s
        wrote on last edited by
        #3

        Pen[^]

        1 Reply Last reply
        0
        • L lune12

          hi, I would like to make a program that deal with algorithm on graphs. Which control should I use for drawing the graph - the nodes and edges? Thanks, Lune

          R Offline
          R Offline
          Russell Jones
          wrote on last edited by
          #4

          I spent a lot of time researching this when I was trying to build an application to plot juggling state graphs. In the end I decided that laying out the nodes was one of those jobs that's almost trivial for a human but an absolute nightmare for a computer. There are some OK algorithms for laying out the graphs ( a lot come from electronic circuit board design) but they will never work 100% for the task you are trying to achieve. I made the Nodes draggable and then let the user arrange them where they were wanted, it was far less coding effort than trying to auto sort anything more than a trivial graph. Russ

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups