For my game i need to create a map based on a graph starting from the coordinates of the nodes, using "roads" instead of simple lines (for the edges) and circles instead of points (for nodes), but i don't now exactly which library to use.

As far as I now the standard graph visualization libraries wouldn't make me create this kind of graph.

Here is a quick example of what i mean:

enter image description here

If possible for the points i would like to use a custom textures

I only need to learn how to create the picture, because i know how to handle it in my game

  • 4
    \$\begingroup\$ What exactly is your question? \$\endgroup\$
    – Pikalek
    Commented May 31, 2017 at 12:54
  • \$\begingroup\$ i want a good way to create a map for my app using my graph as a reference \$\endgroup\$
    – DeNasti
    Commented May 31, 2017 at 12:58
  • \$\begingroup\$ @DeNasti just iterate your nodes and place them on a plane? \$\endgroup\$
    – dot_Sp0T
    Commented May 31, 2017 at 12:59
  • 5
    \$\begingroup\$ Try editing your question to include example images of the kind of visual you want (since there are many, many kinds of map we might derive from a graph), lay out what you know how to do so far, and go into detail about the particular step in the process you're stuck on and need help with. A complete end-to-end solution probably won't fit in an answer, so the more specific you can be in you (first) question, the better your chances of getting a quality answer. You can always ask a separate question in a new post for the next step you need help with. \$\endgroup\$
    – DMGregory
    Commented May 31, 2017 at 13:23
  • 3
    \$\begingroup\$ You followed the first part of my comment. Now for the rest. You haven't yet told us which steps in this process you know how to do, or which specific step you want help with. There's a lot in here - laying out your graph into a set of 2D coordinates, loading and displaying images on the screen, positioning images on your node coordinates, drawing lines or stretched ribbons along the edges. It's also unclear whether you just want to compose this view on the screen, or "bake" it into a texture/render target to use as a literal background image. \$\endgroup\$
    – DMGregory
    Commented May 31, 2017 at 14:14

1 Answer 1


This question is just very vague and lacks any details. I think you question should be, what graphics library you should use.

I'm not working with Java but maybe you look for something like lwjgl, which is one of many possible graphics libraries you can use. Second there are many tutorials on how to use it. If you want to keep your Nodes any dynamic, don't just create a static png for that.

Now, if you use one of those libraries, you will likely create those nodes and paths as entities. With positions, orientation and a graphical representation. The nodes will have an array of paths, so in game you can move a unit from one node to another via a path.

There is just not more to say, since your request is so vague.

  • \$\begingroup\$ Questions requesting library / technology recommendations are off topic; please don't recommend changes that would result in closing the question. \$\endgroup\$
    – Pikalek
    Commented Jun 15, 2017 at 13:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .