Sign in to follow this  
Tigernado

2D Graph Generation

Recommended Posts

Tigernado    122
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
dwahler    313
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
Tigernado    122
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this