how to generate graph ?

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

how to generate graph ?

Post by kimiya » 2 weeks ago

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: 496
Joined: 3 years ago

Re: how to generate graph ?

Post by Renger » 2 weeks ago

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