Jump to content
  • Advertisement
Sign in to follow this  
Tigernado

2D Graph Generation

This topic is 3342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Um, generation from what? Do you just want to invent graphs out of thin air? Or is there some particular data source you want to convert to graph form?

Share this post


Link to post
Share on other sites
Quote:
Original post by ApochPiQ
Um, generation from what? Do you just want to invent graphs out of thin air? Or is there some particular data source you want to convert to graph form?


Sorry, I want to generate a graph from a rectangle to make a grid-like graph.

Share this post


Link to post
Share on other sites
Do you mean a lattice graph? The simplest example has a vertex for each integer lattice point from (1,1) to (m,n), where two vertices are joined by an edge if (and only if) they are adjacent points, i.e. they differ by 1 in either the x or y coordinate.

If that's not what you're looking for, you probably need to be more specific.

Share this post


Link to post
Share on other sites
Quote:
Original post by dwahler
Do you mean a lattice graph? The simplest example has a vertex for each integer lattice point from (1,1) to (m,n), where two vertices are joined by an edge if (and only if) they are adjacent points, i.e. they differ by 1 in either the x or y coordinate.

If that's not what you're looking for, you probably need to be more specific.



Thanks, that is the kind of graph I was looking for. I didn't really know the term for it. I found the algorithm I needed in the source code for Programming Game AI By Example.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!