how to generate graph ?

Problems with modeling
Post Reply
kimiya
User
User
Posts: 1
Joined: 4 years ago

how to generate graph ?

Post by kimiya »

Hi,
How do I create a graph like this?
image.png
2 Nodes whose color is different, Differs from other nodes.

thanks.
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: how to generate graph ?

Post by Renger »

Hi

You could start with the techniques used in the following two models from the GAMS model library:
- Triangular Graph Circle Packing (TRICP,SEQ=395)
- Traffic Equilibrium Problem (TRAFFIC,SEQ=169)
In these models graphs are defined using mappings. (see here in the documentation.

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply